GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs: block until the streaming pull shuts down by plamut · Pull Request #424 · googleapis/python-pubsub

This repository was archived by the owner on Oct 13, 2026. It is now read-only.

Conversation

@plamut

@plamut plamut commented Jun 3, 2021

Copy link
Copy Markdown
Contributor

Fixes #423.

If subscriber client is used as a context manager, we need to block until the shutdown is complete before leaving the with block. See the issue description for more details.

PR checklist:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@plamut
docs: block until the streaming pull shuts down
7fb5f93
If subscriber client is used as a context manager, we need to block
until the shutdown is complete before leaving the `with` block.
If not, errors can occur if the underlying gRPC channel is closed before
subscriber client makes the final RPC requests to the server (e.g. auto
NACK anny remaining messages).
@plamut
plamut requested review from a team and anguillanneuf June 3, 2021 09:25
@plamut
plamut requested a review from a team as a code owner June 3, 2021 09:25
@plamut
plamut requested review from busunkim96 and removed request for a team June 3, 2021 09:25
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Jun 3, 2021
@product-auto-label product-auto-label Bot added the api: pubsub Issues related to the googleapis/python-pubsub API. label Jun 3, 2021
@plamut plamut added samples Issues that are directly related to samples. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Jun 3, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 3, 2021
@plamut
plamut requested a review from pradn June 8, 2021 11:40
pradn
pradn approved these changes Jun 11, 2021
View reviewed changes

@pradn pradn left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Looks good, thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@plamut plamut added kokoro:force-run Add this label to force Kokoro to re-run the tests. automerge Merge the pull request once unit tests and other checks pass. labels Jun 14, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 14, 2021
@plamut plamut added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 14, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 14, 2021
@plamut plamut added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 14, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 14, 2021
@gcf-merge-on-green
gcf-merge-on-green Bot merged commit d0d0b70 into googleapis:master Jun 14, 2021
@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge Merge the pull request once unit tests and other checks pass. label Jun 14, 2021
@plamut
plamut deleted the iss-423 branch June 14, 2021 08:18
@release-please release-please Bot mentioned this pull request Aug 11, 2022
chore(main): release 2.13.6 #761
Merged
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@anguillanneuf anguillanneuf Awaiting requested review from anguillanneuf
@busunkim96 busunkim96 Awaiting requested review from busunkim96
1 more reviewer
@pradn pradn pradn approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: pubsub Issues related to the googleapis/python-pubsub API. cla: yes This human has signed the Contributor License Agreement. samples Issues that are directly related to samples.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Race conditions in streaming pull samples

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@plamut @pradn @yoshi-kokoro
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.