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 missed SwitchOnFirst drain and inner stream cancel #2076

Merged
merged 1 commit into from Mar 18, 2020

Conversation

OlegDokuka
Copy link
Contributor

  1. The root cause of the hanging test (https://github.com/reactor/reactor-core/compare/master...OlegDokuka:bugfix/sof-3?expand=1#diff-c590f0f2fbe1d419bdccc521a1894278L215)

    For some reasons, I was thinking that if first is null then we should drain, but in fact, we have to always do that;
    Since the drain is delivering value and onComplete may be called before downstream has appeared or requested at least once I added 2 extra checks for those purposes

  2. Added Inner stream erroring if it appeared after the parent cancellation happened (to make sure disconnected inner stream will not be hanged for forever)

  3. Refactoring to make sure code is not duplicating that much

Signed-off-by: Oleh Dokuka shadowgun@i.ua

@OlegDokuka OlegDokuka changed the title provides fix SwitchOnFirst bug-fixes Mar 18, 2020
Signed-off-by: Oleh Dokuka <shadowgun@i.ua>
@simonbasle simonbasle changed the title SwitchOnFirst bug-fixes Fix missed SwitchOnFirst drain and inner stream cancel Mar 18, 2020
@simonbasle simonbasle merged commit a98d6fa into reactor:master Mar 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants