Skip to content

agent: keep the xDS ACK tracker's listener state per stream instead of one state per name #1624

Closed

Description

@bpalermo

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):

Until then the tracker on main is unchanged by #1559.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Activity

  1. added
    enhancement
    proxy
    on Oct 9, 2026
  2. bpalermo commented on Oct 10, 2026

    @bpalermo
    OwnerAuthor

    #1559 is closed in favour of this. Its branch fix/1511-opening-exchange-resolves-listener-waits is kept: take the tests from it.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

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

    enhancementproxy

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions