You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
agent: one unread xDS watch can stall every snapshot build on the node #1619
go-control-plane v0.14.0's SetSnapshot answers open watches after storing the snapshot and blocks, while the agent holds snapshotMu, until a watch's channel takes the response or the caller's context ends. An unanswered watch stays open, so the next build blocks on it again. A test written for #1608 hung for 300 s on exactly this until the watch was cancelled.
Not verified: whether a production stream can leave its buffered response channel (twice the number of types) full — a proxy that stops reading, a stream goroutine blocked elsewhere.
Consequence if it can: every pod add/remove and registry refresh on the node waits behind the stuck watch, with CNI ADDs timing out.
To do: establish reachability against the pinned Envoy and server; if reachable, bound the wait (a context with a deadline around the set, the watch cancelled and counted when it expires) and expose it as a metric.
Closing: not reachable with go-control-plane v0.14.0. A delta stream has one response channel of capacity 20; a watch is answered once and removed, and the stream opens the next watch of a type only when it handles a request, after draining the channel, so at most one response per watched type plus one is ever queued (7 for the agent's six types). A SotW stream (the per-secret SDS streams) gets a fresh capacity-1 channel per request. A proxy that stops reading blocks the stream goroutine in Send, so no new watch opens. The 300 s hang seen while writing #1608 was a hand-made watch on an unbuffered channel.
#1625 adds three tests that run the agent's cache under the real server stream handlers with a Send that blocks from the first byte (a stuck delta ADS stream, the worst interleaving with 7 responses queued, and a stuck SotW secret stream), each across about 40 builds; they pass on main as well and guard a go-control-plane bump. Not run against a real Envoy.
Activity
bpalermo commentedon Oct 10, 2026
Closing: not reachable with go-control-plane v0.14.0. A delta stream has one response channel of capacity 20; a watch is answered once and removed, and the stream opens the next watch of a type only when it handles a request, after draining the channel, so at most one response per watched type plus one is ever queued (7 for the agent's six types). A SotW stream (the per-secret SDS streams) gets a fresh capacity-1 channel per request. A proxy that stops reading blocks the stream goroutine in
Send, so no new watch opens. The 300 s hang seen while writing #1608 was a hand-made watch on an unbuffered channel.#1625 adds three tests that run the agent's cache under the real server stream handlers with a
Sendthat blocks from the first byte (a stuck delta ADS stream, the worst interleaving with 7 responses queued, and a stuck SotW secret stream), each across about 40 builds; they pass on main as well and guard a go-control-plane bump. Not run against a real Envoy.🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
fix(agent, observability): a caller's ended context no longer leaves …