Skip to content

Conversation

@akarnokd
Copy link
Member

Reported in #2908. The bug is on line 113. If the drainer is delayed after a poll returning null and the emitter producing & terminating before the getCount(), the queue is non empty but the drainer quits and hence the value difference. It comes up almost always if you put a sleep before L113.

akarnokd added a commit that referenced this pull request Apr 23, 2015
Fix the drainer to check if the queue is empty before quitting.
@akarnokd akarnokd merged commit b31112a into ReactiveX:1.x Apr 23, 2015
@davidmoten
Copy link
Collaborator

Pleased to hear just a problem with the test. Thanks for quick resolution @akarnokd

@benjchristensen benjchristensen mentioned this pull request Apr 30, 2015
@akarnokd akarnokd deleted the RxRingBufferTestFix branch May 6, 2015 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants