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

Operator Scan Backpressure Fix #1648

Merged
merged 3 commits into from
Aug 31, 2014

Conversation

benjchristensen
Copy link
Member

Problem 1) The initial value was being emitted before subscription which caused issues with request/producer state, particularly if filter() was used to skip that initial value and then called request(1) before the real request had been sent.
Problem 2) The initial value was not accounted for by the request so it was sending 1 more value than requested. It now modifies the request to account for it.
Problem 3) Redo relied upon these nuances to work. I've fixed this by using a simpler implementation that just maintains state within a map function.

Problem 1) The initial value was being emitted before subscription which caused issues with request/producer state, particularly if filter() was used to skip that initial value and then called request(1) before the real request had been sent.
Problem 2) The initial value was not accounted for by the request so it was sending 1 more value than requested. It now modifies the request to account for it.
Problem 3) Redo relied upon these nuances to work. I've fixed this by using a simpler implementation that just maintains state within a map function.
@cloudbees-pull-request-builder

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

The initial value is sent when first onNext is sent, not at subscription time.
@cloudbees-pull-request-builder

ReactiveX » RxJava » RxJava-pull-requests #9 SUCCESS
This pull request looks good

This is unnecessary and unexpected so skipping it.
benjchristensen added a commit that referenced this pull request Aug 31, 2014
@benjchristensen benjchristensen merged commit b7409d8 into ReactiveX:0.20.x Aug 31, 2014
@benjchristensen benjchristensen deleted the scan-request-fix branch August 31, 2014 18:17
@cloudbees-pull-request-builder

ReactiveX » RxJava » RxJava-pull-requests #10 SUCCESS
This pull request looks good

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.

2 participants