Possible race condition between Topic.flush and OrderedQueue.publish #1746
Labels
api: pubsub
Issues related to the googleapis/nodejs-pubsub API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
It's theoretically possible that calling topic.flush() would pull a reference to an ordered queue that would emit 'drain' (and thus be deleted) after the topic.flush() starts. This could result in calling queue.publish() and a reference error.
The text was updated successfully, but these errors were encountered: