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 v2.0.6 Single.merge produce UndeliverableError [Question] #5132

Closed
stepango opened this issue Feb 24, 2017 · 2 comments
Closed

2.x v2.0.6 Single.merge produce UndeliverableError [Question] #5132

stepango opened this issue Feb 24, 2017 · 2 comments

Comments

@stepango
Copy link

stepango commented Feb 24, 2017

Sorry for code in kotlin.

    @Test fun singleMergeTest() {
        val illegalAccessError = IllegalAccessError()
        Single.merge<String>(listOf(
                Single.error(illegalAccessError),
                Single.error(illegalAccessError),
                Single.error(illegalAccessError)
        )).test().await().assertError(illegalAccessError)
    }

    @Test fun observableMergeTest() {
        val illegalAccessError = IllegalAccessError()
        Observable.merge<String>(listOf(
                Observable.error(illegalAccessError),
                Observable.error(illegalAccessError),
                Observable.error(illegalAccessError)
        )).test().await().assertError(illegalAccessError)
    }

First test produces UndeliverableError after execution but second one completes successfully without errors. Is it expected behaviour or a bug?

@akarnokd
Copy link
Member

Thanks for reporting. This is indeed an inconsistency between Observable and the Flowable-based merges not stopping immediately when one of the inner sources fails and subscribing to the next inner source in synchronous mode.

@akarnokd akarnokd added this to the 2.0 backlog milestone Feb 24, 2017
@akarnokd
Copy link
Member

Closing via #5133.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants