Skip to content

fix(pubsub): fix out of order issue when exactly once is enabled#9472

Merged
hongalex merged 5 commits intogoogleapis:mainfrom
hongalex:fix-pubsub-eos-ordering
Feb 26, 2024
Merged

fix(pubsub): fix out of order issue when exactly once is enabled#9472
hongalex merged 5 commits intogoogleapis:mainfrom
hongalex:fix-pubsub-eos-ordering

Conversation

@hongalex
Copy link
Member

When processing receipt modack messages for exactly once delivery subscriptions, messages are added to a pending map. When creating the slice of successfully modack'ed messages, this map is referenced, which causes messages to be delivered out of order.

This PR adds tests for exactly once scenarios and also fixes a problem with deleting test subscriptions out of order.

Fixes #9401 #9440

@hongalex hongalex requested a review from shollyman as a code owner February 26, 2024 21:09
@hongalex hongalex requested review from a team February 26, 2024 21:09
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: pubsub Issues related to the Pub/Sub API. labels Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: pubsub Issues related to the Pub/Sub API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pubsub: TestIntegration_OrderedKeys_Basic failed

2 participants