2.x: fix flatMap emitting the terminal exception indicator on cancel#5188
Conversation
Codecov Report
@@ Coverage Diff @@
## 2.x #5188 +/- ##
============================================
- Coverage 95.98% 95.94% -0.05%
- Complexity 5665 5667 +2
============================================
Files 621 621
Lines 40340 40346 +6
Branches 5616 5620 +4
============================================
- Hits 38722 38711 -11
- Misses 638 653 +15
- Partials 980 982 +2
Continue to review full report at Codecov.
|
|
|
|
@akarnokd thanks for the fix for FlatMap, but is there a possibility that we have a similar issue with On the same StackOverflow thread, Nantoka commented:
And we are seeing very similar exception for
|
|
It could be. Note though that 2.x is end-of-life so can't do much about it. |
This PR fixes the case when
Flowable.flatMapandObservable.flatMapwould emit theExceptionHelper.TERMINTEDindicator exception to downstream due to emission-cancellation race.Reported on StackOverflow.