Skip to content

Fixing bug where more events than requested could be delivered. #654

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

Merged
merged 3 commits into from
Aug 13, 2018

Conversation

shorea
Copy link
Contributor

@shorea shorea commented Aug 10, 2018

No description provided.

@varunnvs92
Copy link
Contributor

LGTM. Update the codegen tests

Copy link
Contributor

@dagnir dagnir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just a minor comment

* from {@link #drainEventsIfNotAlready()} in that it assumes it has the {@link #isDelivering} 'lease' already.
*/
private void drainEvents() {
// If we've already delivered an exception to the subscriber than bail out
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this might be misleading. isDone is set to true when the the stream completes normally as well (in onEventComplete)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe it's still true as we wouldn't be draining events after onEventComplete is called. So the only scenario where isDone is true in this method is if the stream was completed exceptionally.

@shorea shorea merged commit d15008e into master Aug 13, 2018
@shorea shorea deleted the shorea-backpressure-bug branch November 23, 2018 03:55
aws-sdk-java-automation added a commit that referenced this pull request Oct 30, 2019
…6c1a1351

Pull request: release <- staging/6917eaf8-94fa-48c9-849d-051f6c1a1351
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