Skip to content
This repository was archived by the owner on Mar 17, 2026. It is now read-only.

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

Merged
feywind merged 1 commit into
googleapis:mainfrom
feywind:topic-flush-rc
Jun 8, 2023
Merged

fix: don't crash if an already-drained/removed queue gets flushed again#1747
feywind merged 1 commit into
googleapis:mainfrom
feywind:topic-flush-rc

Conversation

@feywind

@feywind feywind commented Jun 8, 2023

Copy link
Copy Markdown
Collaborator

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 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
@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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