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

Make get_initial_request more resilient to race conditions. #5803

Merged
merged 1 commit into from
Aug 14, 2018

Conversation

theacodes
Copy link
Contributor

There's a rare case where the stream can be restarted while the streaming pull
manager is shutting down. This causes get_initial_request to be called while
the manager is in a bad state, which will trigger an AttributeError when
attempting to read the list of outstanding Ack IDs from the leaser.

Closes #5792

There's a rare case where the stream can be restarted while the streaming pull
manager is shutting down. This causes get_initial_request to be called while
the manager is in a bad state, which will trigger an AttributeError when
attempting to read the list of outstanding Ack IDs from the leaser.

Closes #5792
@theacodes theacodes requested a review from crwilcox August 14, 2018 19:45
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 14, 2018
@theacodes theacodes merged commit 3541f26 into master Aug 14, 2018
@theacodes theacodes deleted the defensive-get-initial-request branch August 14, 2018 20:20
AVaksman pushed a commit to AVaksman/google-cloud-python that referenced this pull request Aug 16, 2018
…is#5803)

There's a rare case where the stream can be restarted while the streaming pull
manager is shutting down. This causes get_initial_request to be called while
the manager is in a bad state, which will trigger an AttributeError when
attempting to read the list of outstanding Ack IDs from the leaser.

Closes googleapis#5792
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants