Skip to content

Introduce structured error for retry budget exhaustion#642

Open
tescherm wants to merge 1 commit intobazelbuild:masterfrom
tescherm:retry-exhausted-err
Open

Introduce structured error for retry budget exhaustion#642
tescherm wants to merge 1 commit intobazelbuild:masterfrom
tescherm:retry-exhausted-err

Conversation

@tescherm
Copy link
Copy Markdown
Contributor

@tescherm tescherm commented Mar 2, 2026

Introduces a custom error type, ErrRetryBudgetExhausted, to replace generic error formatting when a retry policy reaches its maximum attempt limit. This allows callers to programmatically detect and handle retry exhaustion using errors.As or errors.Is, while maintaining full compatibility with gRPC status codes and the existing error message format.

@tescherm tescherm force-pushed the retry-exhausted-err branch 2 times, most recently from 4daf673 to af77c12 Compare March 2, 2026 17:33
@tescherm
Copy link
Copy Markdown
Contributor Author

tescherm commented Mar 2, 2026

@gkousik please have a look

@tescherm tescherm force-pushed the retry-exhausted-err branch from af77c12 to 650512e Compare March 12, 2026 20:28
@tescherm
Copy link
Copy Markdown
Contributor Author

@ywmei-brt1 @bentekkie @fitzner please have a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant