Skip to content

Conversation

@josephdviviano
Copy link

The test failing in #668 is actually due to a flakey race condition that has failed in previous runs of CI - on master — on Windows, in CI run 20594583659 from December 30.

I think, in unordered mode, write_idx_.fetch_add(1) assigns a circular buffer position, but the actual data write happens after the position is claimed. Another thread can finish its write and increment count_ past the batch boundary, causing collect() to read a position that the first thread hasn't written to yet.

I was able to reproduce on my machine with the following test on the current codebase, but it should pass currently.

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