Skip to content

1.x: fix SyncOnSubscribe not signalling onError if the generator crashes #3644

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 25, 2016

Conversation

akarnokd
Copy link
Member

Discovered in a stackoverflow question.

@akarnokd akarnokd added the Bug label Jan 25, 2016
parent.onUnsubscribe(state);
try {
parent.onUnsubscribe(state);
} catch (Throwable e) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you test that too?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really, this exception has nowhere to go and hijacking the plugins is a nightmare.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's sad, would be nice to have a way to test such cases.

On Tue, 26 Jan 2016, 00:44 David Karnok [email protected] wrote:

In src/main/java/rx/observables/SyncOnSubscribe.java
#3644 (comment):

@@ -363,7 +373,12 @@ private boolean tryUnsubscribe() {
}

     private void doUnsubscribe() {
  •        parent.onUnsubscribe(state);
    
  •        try {
    
  •            parent.onUnsubscribe(state);
    
  •        } catch (Throwable e) {
    

Not really, this exception has nowhere to go and hijacking the plugins is
a nightmare.


Reply to this email directly or view it on GitHub
https://github.com/ReactiveX/RxJava/pull/3644/files#r50760936.

@artem_zin

@artem-zinnatullin
Copy link
Contributor

👍

1 similar comment
@stealthcode
Copy link

👍

akarnokd added a commit that referenced this pull request Jan 25, 2016
1.x: fix SyncOnSubscribe not signalling onError if the generator crashes
@akarnokd akarnokd merged commit 4e31a5f into ReactiveX:1.x Jan 25, 2016
@akarnokd akarnokd deleted the SyncOnSubscribeErrorMgmt1x branch January 25, 2016 22:33
@akarnokd
Copy link
Member Author

@stealthcode Do you have time to review #3631, see what else can be included into 1.1.1 and hopefully release it this week?

@stealthcode
Copy link

Sure I'll see what we can do.

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.

3 participants