Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the drainer to check if the queue is empty before quitting. #2909

Merged
merged 1 commit into from
Apr 23, 2015

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