You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Operation mergeDelayError(Observable<Observable<T>>) does not delay onError of parent observable #313
Shouldn't all onError calls including a possible onError call of the parent observable being delayed till all child observables have successfully finished emitting items or called onError themselves?
To get my desired behaviour I changed the code so now the onError method adds the error to the error queue and calls the onCompleted method which already does the propagation of received errors.
Under what circumstances can the parent emit an error? The use cases you provide seem contrived, as mergeDelayError is a static method and therefore there is not a parent Observable to emit an error.
I'm sorry for this late reply. I haven't looked into this issue for a while as our project using RxJava is running without any problems. But I will try to update to the new version next month and use base RxJava only without any customizations we made to it back then. If this is still an issue I'll report here.
Activity
benjchristensen commentedon Dec 6, 2013
If this is still an issue can you provide a unit test?
EmteZogaf commentedon Feb 19, 2014
I wrote a unit test. An Observable of asynchronous child Observables is calling onError after emitting the child Observables.
I created 2 branches:
benjchristensen commentedon May 20, 2014
Under what circumstances can the parent emit an error? The use cases you provide seem contrived, as
mergeDelayErroris a static method and therefore there is not a parentObservableto emit an error.In that code there are 3
Observableinstances being merged, but no parent to emit an error.benjchristensen commentedon Jul 24, 2014
Reviewing this again ... the signature where this could be an issue is:
benjchristensen commentedon Jul 24, 2014
Marking to be included in 1.0 work.
EmteZogaf commentedon Jul 24, 2014
I'm sorry for this late reply. I haven't looked into this issue for a while as our project using RxJava is running without any problems. But I will try to update to the new version next month and use base RxJava only without any customizations we made to it back then. If this is still an issue I'll report here.
benjchristensen commentedon Sep 23, 2014
Marking as 1.x as this doesn't require a signature change so can be fixed without holding up 1.0
Merge branch 'mergeDelayErrorFix' of github.com:EmteZogaf/RxJava into…
Fix mergeDelayError Handling of Error in Parent Observable
Merge branch 'mergeDelayErrorFix' of github.com:EmteZogaf/RxJava into…
Fix mergeDelayError Handling of Error in Parent Observable