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

2.x: fix Flowable.concatMapEager hang due to bad request management #4751

Merged
merged 2 commits into from
Oct 22, 2016

Conversation

akarnokd
Copy link
Member

Flowable.concatMapEager's drain loop when encountering a finished inner jumped back to the beginning of the loop but disregarded the potentially changed request amount and just stopped emitting. The fix is to use the typical request management approach of reading the current request at the beginning of the loop and then committing the emission amount before trying to leave the loop.

Related: #4620

In addition TestHelper.assertError has been changed to attach the whole unexpected exception to the AssertionError.

@akarnokd akarnokd added this to the 2.0 milestone Oct 21, 2016
@codecov-io
Copy link

Current coverage is 93.74% (diff: 73.91%)

Merging #4751 into 2.x will decrease coverage by 0.04%

@@                2.x      #4751   diff @@
==========================================
  Files           570        570          
  Lines         37067      37073     +6   
  Methods           0          0          
  Messages          0          0          
  Branches       5648       5651     +3   
==========================================
- Hits          34764      34754    -10   
- Misses         1171       1183    +12   
- Partials       1132       1136     +4   

Powered by Codecov. Last update 777b4c1...36a7c6f

@akarnokd akarnokd merged commit f79625a into ReactiveX:2.x Oct 22, 2016
@akarnokd akarnokd deleted the ConcatMapEagerFix branch October 22, 2016 07:40
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.

3 participants