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
Fix race condition in nextInsertBatch() causing off-by-1 doc count
has_next_create() and next() were separate non-atomic operations, allowing
two threads to both pass the boundary check at create_e and produce one
extra document beyond the intended range.
Fix: atomically claim the index with getAndIncrement() first, then break
if the claimed index is out of bounds — eliminating the check-then-act gap.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments