Skip to content

QUIC twins: one hour after an agent roll, the fetch-window prune removes twins still carrying traffic → ~200 × 503 NC fleet-wide (proving soak rev-979, 23:37Z) #1073

Closed

Description

@bpalermo

Observed — #979 proving soak (talos-main, chart 1.0.12-33ff5e9, T0 21:25:17Z)

  • 22:37–22:38Z the churn schedule rolls aether-agent (T0+72m). On every node the new agent logs fresh xDS stream re-stated QUIC twins: held-only twins admit nothing, live on-demand subscriptions are served. The proxies were NOT restarted, so they kept their existing on-demand subscriptions and kept sending traffic on the twins.
  • 23:37–23:38Z — exactly one --east-west-quic-pair-fetch-window (1 h) later — every agent logs pruned persisted east-west QUIC pairs with no on-demand fetch since agent start, immediately followed by observed east-west QUIC pair (ODCDS); building its twin ×7–10 per node.
  • In between, sources get 503 NC cluster_not_found: ~199 in 23:30–00:00Z, from sa/default (k6) and sa/prober, to every QUIC destination (svc-1, svc-2, svc-3, echo, mixed-svc), on w02/w03/w04 at 23:37–23:38. The churn event at 23:37 (svc-2 roll) is a coincidence of timing; the prune line is the trigger on every node.

So the prune treats "no on-demand fetch since agent start" as "unused", but after an agent restart with the proxy untouched, live twins are never re-fetched — the proxy already holds them — so every twin in use is pruned one window later, and the next request pays an ODCDS round trip → NC. This violates the ODCDS strand rule ("never forget a subscribed pair") that #1035/#1036/#1052 enforce for streams.

Likely interaction

#1071 (#1052) moved subscription state to per-ADS-stream holdings. The fresh stream after the agent restart re-states its subscriptions — but the fetch-window prune still keys on "fetched since agent start" rather than "held by a live stream". Check quicpairs.go prune path vs Ledger.Subscribed after Restate, and whether held-only twins that are actively used (traffic on the twin, not a fetch) ever refresh their "last seen".

Ask

  1. The fetch-window prune must skip any pair held by a live stream (restated or subscribed), and should refresh on use, not only on fetch.
  2. Regression test: agent restart with the proxy's stream re-stating N held twins, advance the clock past the fetch window, assert zero pruned and zero NC.
  3. Soak gate: 0 pruned persisted east-west QUIC pairs lines that prune pairs with live traffic; 503 NC = 0 outside first use.

Expect a repeat of this burst one hour after every agent roll in the rest of this soak (the TRIPLE rolls the agent again).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions