Skip to content

Fix missed SSE pushes between snapshot and subscribe - #56

Merged
doganarif merged 1 commit into
mainfrom
fix/sse-subscribe-order
Jul 2, 2026
Merged

Fix missed SSE pushes between snapshot and subscribe#56
doganarif merged 1 commit into
mainfrom
fix/sse-subscribe-order

Conversation

@doganarif

Copy link
Copy Markdown
Owner

The SSE handler subscribed to store notifications after sending the initial snapshot. An Add landing in that window was silently missed and only surfaced at the 15-second resync — the flaky TestSSEPushesOnAdd failure on #55's CI run was exactly this race under load.

Subscribing before taking the snapshot closes the window: an Add in between now shows up in the snapshot and additionally triggers one no-op flush.

@doganarif
doganarif merged commit bd5a8cb into main Jul 2, 2026
1 check passed
@doganarif
doganarif deleted the fix/sse-subscribe-order branch July 2, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant