Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@akarnokd
Copy link
Member

Should resolve the test failure of #1972 .

When the main part of the test succeded, an onCompleted was sent out from the main thread which was not serialized in respect to the onNext(1) issued from the worker thread, therefore, two replay was attempted sometimes. At first the caughtUp was seen false, the replay was entered but the next instruction cleared the index causing the IllegalStateException.

benjchristensen added a commit that referenced this pull request Dec 16, 2014
Fixed test issuing non-serialized messages to the subject.
@benjchristensen benjchristensen merged commit 0f2e883 into ReactiveX:1.x Dec 16, 2014
@zsxwing
Copy link
Member

zsxwing commented Dec 18, 2014

Failed in https://travis-ci.org/ReactiveX/RxJava/builds/44421756

rx.subjects.ReplaySubjectBoundedConcurrencyTest > testReplaySubjectEmissionSubscriptionRace FAILED
    java.lang.NullPointerException
        at rx.subjects.ReplaySubject$BoundedState.replayObserverFromIndex(ReplaySubject.java:628)
        at rx.subjects.ReplaySubject$BoundedState.replayObserver(ReplaySubject.java:619)
        at rx.subjects.ReplaySubject.caughtUp(ReplaySubject.java:430)
        at rx.subjects.ReplaySubject.onCompleted(ReplaySubject.java:410)
        at rx.subjects.ReplaySubjectBoundedConcurrencyTest.testReplaySubjectEmissionSubscriptionRace(ReplaySubjectBoundedConcurrencyTest.java:399)

@akarnokd akarnokd deleted the ReplaySubjectFix1215 branch December 18, 2014 07:50
@akarnokd
Copy link
Member Author

Thanks! Forgot about the other test class.

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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.