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

Fixed issue #428 #430

Merged
merged 1 commit into from
Oct 16, 2013
Merged

Fixed issue #428 #430

merged 1 commit into from
Oct 16, 2013

Conversation

zsxwing
Copy link
Member

@zsxwing zsxwing commented Oct 12, 2013

I fixed the issue #428. This issus is because the wrong order of unsubscribe and emitChunk.

unsubscribe will cancel the Future, and the currrent thread's interrupt status will be set. If unsubscribe is called before emitChunk, the currrent thread's interrupt status has already set before emitChunk. It may confuse users when they have some codes depending on the interrupt status.

I put emitChunk before unsubscribe and added a unit test for it.

@cloudbees-pull-request-builder

RxJava-pull-requests #341 FAILURE
Looks like there's a problem with this pull request

@zsxwing
Copy link
Member Author

zsxwing commented Oct 12, 2013

It seems rx.operators.OperationConcat$UnitTest.testNestedAsyncConcat does not use TimeAndSizeBasedChunks. Is this some potential issue?

@cloudbees-pull-request-builder

RxJava-pull-requests #342 SUCCESS
This pull request looks good

@benjchristensen
Copy link
Member

Thank you for researching and fixing this!

@benjchristensen
Copy link
Member

It seems rx.operators.OperationConcat$UnitTest.testNestedAsyncConcat does not use TimeAndSizeBasedChunks. Is this some potential issue?

What about that unit test suggests the need for TimeAndSizeBasedChunks?

benjchristensen added a commit that referenced this pull request Oct 16, 2013
@benjchristensen benjchristensen merged commit fcf13c2 into ReactiveX:master Oct 16, 2013
@zsxwing
Copy link
Member Author

zsxwing commented Oct 16, 2013

What about that unit test suggests the need for TimeAndSizeBasedChunks?

No, I just want to say this is another example of #383.

@zsxwing zsxwing deleted the issue-428 branch October 16, 2013 05:42
@benjchristensen
Copy link
Member

But what does a flaky unit test in concat have to do with TimeAndSizeBasedChunks? Or are you just saying rx.operators.OperationConcat$UnitTest.testNestedAsyncConcat is a flaky unit test?

@zsxwing
Copy link
Member Author

zsxwing commented Oct 16, 2013

I just said rx.operators.OperationConcat$UnitTest.testNestedAsyncConcat was a flaky unit test.

rickbw pushed a commit to rickbw/RxJava that referenced this pull request Jan 9, 2014
jihoonson pushed a commit to jihoonson/RxJava that referenced this pull request Mar 6, 2020
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