Skip to content

038: ApplyQUICClusterSelection rewrites single-backend GAMMA rules to the parent — "GAMMA stays h2" holds for weighted routes only #961

Closed

Description

@bpalermo

Found while writing the east-west QUIC e2e (038 PR 8), on #956.

ApplyQUICClusterSelection rewrites every route on the allow-listed service's vhost whose action is cluster: <its h2 cluster> into the matcher cluster specifier. That includes a GAMMA (HTTPRoute) rule with a single backendRef to its own parent Service, a rule with no backends, and the trailing default route — only WeightedClusters routes are left alone. #956's description and the 038 text say "GAMMA-routed destinations stay h2 in this cut", which is true only of weighted routes.

Functionally the rewritten single-backend rule is harmless (same destination, the caller's own twin). But the statement needs to be made true one way or the other:

  • either exclude routes that came from a GAMMA projection (they are identifiable: common/gammaproject builds them) so "GAMMA stays h2" is exact, or
  • extend the selection to WeightedClusters too (each weighted arm gets its per-source twin) and retire the carve-out.

The e2e's E4 tests the weighted case only and says so in its header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions