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
registrar: WatchEndpoints sends the snapshot and SNAPSHOT_COMPLETE before it subscribes to the broadcaster, so a broadcast in that window is never delivered on the stream #1205
Found while implementing #1193 (PR #1204). WatchEndpoints (registrar/internal/server/server.go) sends the full snapshot + catalog + SNAPSHOT_COMPLETE and only then calls Subscribe; a batch broadcast between the snapshot read and the subscribe is lost for that stream. The resume logic stays safe (the agent's token predates the change, so the next reconnect resends), but the live cache misses the change until the next event touches it — with #1193's stable versions that can be a long time on a quiet service. Fix: subscribe first (buffering), then send the snapshot taken under the same lock/version, then drain the buffer, dropping events whose version ≤ the snapshot's (or re-applying them idempotently — the agent upserts). Test: inject a broadcast between snapshot read and subscribe and assert the stream delivers it.
Activity
fix(registrar): hand watchers the version on no-op revisions (#1241)
fix(registrar): hand watchers the version on no-op revisions (#1241)
fix(registrar): hand watchers the version on no-op revisions (#1241)
fix(registrar): hand watchers the version on no-op revisions (#1241) (#…