Skip to content

fix(bigtable): honor per-call retryableCodes in MutateRowsAttemptCallable - #15046

Merged
igorbernstein2 merged 4 commits into
mainfrom
fix-mutaterows-per-call-retryable-codes
Nov 17, 2026
Merged

igorbernstein2 merged 4 commits into
mainfrom
fix-mutaterows-per-call-retryable-codes

Conversation

@igorbernstein2

Copy link
Copy Markdown
Contributor

Summary

When a caller overrides retryableCodes per call via ApiCallContext.withRetryableCodes(...), MutateRowsAttemptCallable previously ignored callContext.getRetryableCodes() in createEntryError (always checking the stub default this.retryableCodes) and in createSyntheticErrorForRpcFailure (keeping requestApiException.isRetryable() computed from the stub default).

Changes

  • Use callContext.getRetryableCodes() when non-null in createEntryError and createSyntheticErrorForRpcFailure (falling back to the stub default retryableCodes).
  • Add unit tests in MutateRowsAttemptCallableTest verifying per-call retryableCodes overrides for both entry-level and RPC-level errors.

@igorbernstein2
igorbernstein2 requested review from a team as code owners November 16, 2026 22:46

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates MutateRowsAttemptCallable to respect per-call retryable codes from ApiCallContext for both entry-level and RPC-level failures, and adds corresponding unit tests. The reviewer identified an inconsistency in createSyntheticErrorForRpcFailure where it falls back to requestApiException.isRetryable() instead of the stub's configured retryableCodes when no per-call override is present. A code suggestion was provided to align this fallback behavior with createEntryError.

@igorbernstein2
igorbernstein2 enabled auto-merge (squash) November 17, 2026 17:02
@igorbernstein2
igorbernstein2 merged commit 70ff5ca into main Nov 17, 2026
207 of 208 checks passed
@igorbernstein2
igorbernstein2 deleted the fix-mutaterows-per-call-retryable-codes branch November 17, 2026 17:26
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.

2 participants