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: a SetSnapshot error is treated as "not set" although the snapshot is installed and served #1549
go-control-plane v0.14.0's SetSnapshot stores the snapshot first and can only return an error afterwards, while answering open watches (pkg/cache/v3/simple.go). generateSnapshot treats that error as if the snapshot had not been set: the published-pin gauge, logIdentityBindings and logInboundIdentityBindings are skipped for a snapshot proxies are in fact served from, until the next build.
In practice this happens only when a stream's context ends mid-response, so the window is one build. Found while answering a review thread on #1528 (the acknowledged-pin tracker already records such a snapshot; a test there pins that).
Fix: run the post-set bookkeeping whenever the snapshot was stored, and log the watch-response error separately.
Activity
fix(agent): a snapshot whose set returned an error is reported as the…