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
Commit b0b0f65
Browse filesBrowse the repository at this point in the historyBrowse files
Fix stale is_deleting flag blocking recreation, serialize delete vs create/update
Root cause of the Quest distributed CI failure: a node that doesn't run
the background deletion job itself (an ingestor) never clears its
resident stream's is_deleting flag on its own -- it only self-heals on
the next sync_all_streams tick. Recreating a stream shortly after
deleting it (a pattern several Quest tests use) landed in the window
before that tick, so create_update_stream kept rejecting the recreate
with 409 even though the tombstone was already gone. It now re-checks
the durable tombstone before trusting the in-memory flag, and clears
the flag itself when the tombstone turns out to already be cleared.
Also addresses two new CodeRabbit findings on the delete/create race:
mark_deleting() plus the tombstone write could interleave with a
concurrent create_update_stream on the same node, since only the query
node's put_stream held CREATE_STREAM_LOCK and DELETE never did.
Standalone and ingestor put_stream/delete had no lock at all. All three
now hold the same lock across the is_deleting()-check-through-
tombstone-write window.
0 commit comments