Skip to content

test(pubsub): use default MinExtensionPeriod for exactly once tests#8502

Merged
hongalex merged 5 commits intogoogleapis:mainfrom
hongalex:test-pubsub-eod-test
Aug 31, 2023
Merged

test(pubsub): use default MinExtensionPeriod for exactly once tests#8502
hongalex merged 5 commits intogoogleapis:mainfrom
hongalex:test-pubsub-eod-test

Conversation

@hongalex
Copy link
Copy Markdown
Member

Fixes #8315

What's happening here is that the message is being redelivered in a short time frame, resulting in the context cancellation and thus causing the ackResult.Get(ctx) call to be cancelled rather than being timed out. Message redelivery can be mitigated by setting a high value for MinExtensionPeriod, or in this case, not setting it at all since the default value is 1 minute.

@hongalex hongalex requested a review from shollyman as a code owner August 28, 2023 20:50
@hongalex hongalex requested review from a team August 28, 2023 20:50
@product-auto-label product-auto-label Bot added size: xs Pull request size is extra small. api: pubsub Issues related to the Pub/Sub API. labels Aug 28, 2023
@hongalex hongalex changed the title test(pubsub): update retry deadlines for exactly once tests test(pubsub): use default MinExtensionPeriod for exactly once tests Aug 28, 2023
@hongalex hongalex enabled auto-merge (squash) August 28, 2023 21:11
@hongalex hongalex added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Aug 28, 2023
@hongalex hongalex removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Aug 30, 2023
@hongalex hongalex disabled auto-merge August 30, 2023 00:56
@hongalex hongalex enabled auto-merge (squash) August 31, 2023 22:10
@hongalex hongalex merged commit a05b6ed into googleapis:main Aug 31, 2023
@hongalex hongalex deleted the test-pubsub-eod-test branch September 5, 2023 17:29
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: xs Pull request size is extra small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pubsub: TestExactlyOnceDelivery_AckRetryDeadlineExceeded failed

2 participants