Repository navigation
Description
The ACK tracker keeps ONE state per listener name, shared by every xDS stream. With two proxy generations connected (a hot restart) or a reconnect, answers from different streams interleave, and every rule that tries to order them is a patch on that model. PR #1559 (draft) made presence version-keyed and added a send-order clock, rejection ordering, an unconfirmed state and close-time rules; two adversarial reviews and seven automated review rounds each still found a real case, and its author's own assessment is that the name-keyed model cannot be shown closed.
Proposal: keep answers per stream and derive presence across the live streams. On one stream go-control-plane has at most one response of a type outstanding, so order holds by construction. That removes the clock, both sent-order rules, the writing-stream field, unconfirmed and the close-time rules, and gives a natural answer to what a wait means during a hot-restart overlap (which generation must hold the listener).
What it should settle, with tests taken from #1559's branch (they are the specification):
- a wait is for the version the agent publishes, not for a name (a same-named replacement must wait for its own ACK) — the pre-existing weakness behind fix(agent): a listener ACK wait is for the version the agent publishes, and a proxy that states that version resolves it from the opening exchange (#1511) #1559's B1;
- a proxy that states the published version at reconnect resolves the wait (agent: listener waits matched by initial_resource_versions run to their deadline though the opening exchange could resolve them #1511);
- unknown is not absent for the removal wait (agent: after an agent restart a pod deletion before the proxy's opening Listener ACK does not wait for the listener's removal #1572);
- state is dropped with its stream, so a new Envoy process starts unknown (agent: listener presence in the ACK tracker survives a stream close, although a new Envoy process starts with no listeners #1585) and removed names are forgotten (agent: the xDS ACK tracker never forgets a removed resource's name #1573);
- no answer from one generation can erase another's.
Until then the tracker on main is unchanged by #1559.
🤖 Generated with Claude Code
Activity
bpalermo commentedon Oct 10, 2026
#1559 is closed in favour of this. Its branch
fix/1511-opening-exchange-resolves-listener-waitsis kept: take the tests from it.🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
fix(agent): a proxy counts for a listener wait from its Listener requ…