Skip to content

feat(pubsub): define default retry policy for publisher#4711

Merged
suzmue merged 3 commits intogoogleapis:mainfrom
suzmue:retry_policy
Feb 18, 2026
Merged

feat(pubsub): define default retry policy for publisher#4711
suzmue merged 3 commits intogoogleapis:mainfrom
suzmue:retry_policy

Conversation

@suzmue
Copy link
Copy Markdown
Collaborator

@suzmue suzmue commented Feb 17, 2026

This default retry policy was determined by looking at the reference docs and comparing with the Java and Go implementations. Both of these implementations include Unknown as a retryable grpc code. 10 minutes was chosen as the timeout to align with the Java implementation. This should be matched with a more aggressive backoff policy.

Go also has a special check to avoid retrying Internal errors that are invalid UTF-8. Since strings are valid UTF-8, this problem should not need to be handled in our Rust client library.

For #3019

@product-auto-label product-auto-label bot added the api: pubsub Issues related to the Pub/Sub API. label Feb 17, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.05%. Comparing base (f44e48f) to head (9116904).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4711      +/-   ##
==========================================
+ Coverage   95.04%   95.05%   +0.01%     
==========================================
  Files         197      198       +1     
  Lines        7563     7581      +18     
==========================================
+ Hits         7188     7206      +18     
  Misses        375      375              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@suzmue suzmue marked this pull request as ready for review February 17, 2026 23:19
@suzmue suzmue requested a review from a team as a code owner February 17, 2026 23:19
This default retry policy was determined by looking at the
reference docs and comparing with the Java and Go implementations.
Both of these implementations include Unknown as a retryable grpc
code.

Go also has a special check to avoid retrying Internal errors
that are invalid UTF-8. Since strings are valid UTF-8, this problem
should not need to be handled in our Rust client library.

For googleapis#3019
@suzmue suzmue merged commit 5d8efad into googleapis:main Feb 18, 2026
34 checks passed
@suzmue suzmue deleted the retry_policy branch February 18, 2026 15:28
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.05%. Comparing base (f44e48f) to head (9116904).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4711      +/-   ##
==========================================
+ Coverage   95.04%   95.05%   +0.01%     
==========================================
  Files         197      198       +1     
  Lines        7563     7581      +18     
==========================================
+ Hits         7188     7206      +18     
  Misses        375      375              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants