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

feat: retry temporary GRPC statuses for ack/modack/nack when exactly-once delivery is enabled#607

Merged
pradn merged 4 commits intogoogleapis:mainfrom
pradn:exactly_once_retry_temp_failures
Mar 8, 2022
Merged

feat: retry temporary GRPC statuses for ack/modack/nack when exactly-once delivery is enabled#607
pradn merged 4 commits intogoogleapis:mainfrom
pradn:exactly_once_retry_temp_failures

Conversation

@pradn
Copy link
Contributor

@pradn pradn commented Mar 8, 2022

We need to do this because only UNAVAILABLE is retried for acks/modacks/nacks at the GRPC level. With this CL, we extend the higher-level, manual retry mechanism for these RPCs to all the ones considered temporary for the Publish RPC. The new list of retriable codes is for these RPCs when exactly-once delivery is enabled is: DEADLINE_EXCEEDED, RESOURCE_EXHAUSTED, ABORTED, INTERNAL, UNAVAILABLE.

@pradn pradn requested a review from a team March 8, 2022 19:39
@pradn pradn requested a review from a team as a code owner March 8, 2022 19:39
@product-auto-label product-auto-label bot added the api: pubsub Issues related to the googleapis/python-pubsub API. label Mar 8, 2022
@pradn pradn requested review from acocuzzo and maheshgattani March 8, 2022 19:40
Copy link
Contributor Author

@pradn pradn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finished addressing Mike and Tianzi's comments.

@anguillanneuf anguillanneuf self-requested a review March 8, 2022 21:08
@anguillanneuf
Copy link
Contributor

Lint errors will go away after you run nox -s blacken.

Copy link

@mmicatka mmicatka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pradn pradn merged commit a91bed8 into googleapis:main Mar 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: pubsub Issues related to the googleapis/python-pubsub API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants