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 into
googleapis: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 into
googleapis:mainfrom
pradn:exactly_once_retry_temp_failures

Conversation

@pradn

@pradnpradn commented Mar 8, 2022

Copy link
Copy Markdown
Contributor

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 review from a teamMarch 8, 2022 19:39
@product-auto-labelproduct-auto-labelBot added the api: pubsub Issues related to the googleapis/python-pubsub API. label Mar 8, 2022
Comment threadnoxfile.py Outdated
Comment threadgoogle/cloud/pubsub_v1/subscriber/_protocol/streaming_pull_manager.py Outdated
Comment threadnoxfile.py Outdated

@pradnpradn left a comment

Copy link
Copy Markdown
ContributorAuthor

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
Copy Markdown
Contributor

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

@mmicatkammicatka left a comment

Copy link
Copy Markdown

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:mainMar 8, 2022
This was referenced Mar 8, 2022
@release-pleaserelease-pleaseBot mentioned this pull request Aug 11, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@pradn@anguillanneuf@maheshgattani@mmicatka@acocuzzo