-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Exception rethrown inconsistently with/without .flatMap() in 0.16.1 #771
Comments
The problem here is that one of SafeObserver.onError is called twice: one is |
Not sure this is a bug. If an Observer throws an Exception in |
the behavior is inconsistent. that's the bug. Document that the throwables are silently swallowed or thrown if there is no onError() Errors should probably always be thrown because I want my JVM to terminate before my JVM starts misbehaving and serving wrong data |
If an onError is not implemented it should always be thrown. |
@benjchristensen , Looks some operators do not handle |
Dealing with in pull request #839 |
- ReactiveX#748 (comment) - ReactiveX#771 - ReactiveX#789 - SynchronizedObserver is for synchronization, not error handling or contract enforcements, that's the job of SafeSubscriber - Removed some unit tests that were asserting unsubscribe behavior that relied on SynchronizedObserver. They were testing something they are not responsible for.
Should be fixed in #839 |
Maybe I just don't understand JavaRX yet but this seems inconsistent.
Run this, and then re-run without the .flatMap(). Note that the second run passes the unit test.
The text was updated successfully, but these errors were encountered: