Skip to content

fix(bigtable): check isOk and getRejected first in RetryingVRpc.shouldRetry - #14795

Merged
igorbernstein2 merged 1 commit into
googleapis:mainfrom
igorbernstein2:b573788617
Oct 27, 2026
Merged

igorbernstein2 merged 1 commit into
googleapis:mainfrom
igorbernstein2:b573788617

Conversation

@igorbernstein2

Copy link
Copy Markdown
Contributor

Move the isOk() and getRejected() checks to the top of RetryingVRpc.Active.shouldRetry so successful RPCs short-circuit immediately and client-rejected results are never retried even if RetryInfo is present.

@igorbernstein2
igorbernstein2 requested review from a team as code owners October 27, 2026 20:17

@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 the retry logic in RetryingVRpc to short-circuit successful RPCs and immediately prevent retries for results explicitly rejected by the client, even if they contain RetryInfo. Additionally, a new unit test has been added to verify this behavior. There are no review comments, and the changes look solid, so I have no further feedback to provide.

@igorbernstein2
igorbernstein2 enabled auto-merge (squash) October 27, 2026 20:38
@igorbernstein2
igorbernstein2 merged commit d821bd3 into googleapis:main Oct 27, 2026
205 checks passed
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