Skip to content

agent: a SetSnapshot error is treated as "not set" although the snapshot is installed and served #1549

Closed

Description

@bpalermo

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.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Activity

  1. added
    bug
    minor
    observability
    on Oct 9, 2026
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

    bugminorobservability

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions