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

fix: don't crash if an already-drained/removed queue gets flushed again #1747

Merged
merged 1 commit into from Jun 8, 2023

Conversation

feywind
Copy link
Collaborator

@feywind feywind commented Jun 8, 2023

This just allows correct clean-up behaviour if OrderedQueue.publish() gets called more than once. This shouldn't usually happen, but it seems like the easiest fix for the race condition mentioned in the issue.

Fixes: #1746

@feywind feywind requested review from a team as code owners June 8, 2023 17:20
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: pubsub Issues related to the googleapis/nodejs-pubsub API. labels Jun 8, 2023
@feywind feywind added owlbot:run Add this label to trigger the Owlbot post processor. and removed api: pubsub Issues related to the googleapis/nodejs-pubsub API. labels Jun 8, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jun 8, 2023
@feywind feywind merged commit 52ea441 into googleapis:main Jun 8, 2023
14 checks passed
@feywind feywind deleted the topic-flush-rc branch June 8, 2023 21:18
gcf-merge-on-green bot pushed a commit that referenced this pull request Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible race condition between Topic.flush and OrderedQueue.publish
2 participants