Skip to content

Merge: fixed hangs & missed scalar emissions #2482

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

Merged
merged 1 commit into from
Jan 28, 2015

Conversation

akarnokd
Copy link
Member

I think I hunted down the bug that was causing missed value emission if scalar source such as just() was involved. This either manifested as completion without a value or non-completion because the missing scalar value would sit in the queue and prevented onCompleted from draining. (I've also fixed some visibility issues which might had an effect in this.)

In addition, I've discovered a good practice for spuriously failing tests: I create a new @Testmethod with a loop in it, calling the original test method. This way, the original is not disturbed and the likelihood of failure is increased by the looping test.

Since the whole mergeoperator is quite complicated, I can't be 100% certain this works despite local tests passing.

See also #2480, #2466 and #1941.

@akarnokd
Copy link
Member Author

I'm going to merge this so other bugfixes/enhancements can go on.

akarnokd added a commit that referenced this pull request Jan 28, 2015
Merge: fixed hangs & missed scalar emissions
@akarnokd akarnokd merged commit e54d9a0 into ReactiveX:1.x Jan 28, 2015
@akarnokd akarnokd deleted the MergeFix0122 branch January 28, 2015 14:48
@benjchristensen benjchristensen mentioned this pull request Feb 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant