Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Mar 8, 2022

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 review from a team as code owners 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
noxfile.py Outdated Show resolved Hide resolved
noxfile.py Outdated Show resolved Hide resolved
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 join this conversation on GitHub. Already have an account? Sign in to comment
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