fix: fix retry info algorithm setting by mutianf · Pull Request #2562 · googleapis/java-bigtable · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

fix: fix retry info algorithm setting #2562

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

Merged
merged 7 commits into from
Apr 28, 2025
Merged

Conversation

mutianf
Copy link
Contributor

@mutianf mutianf commented Apr 23, 2025

Fix a bug in RetryInfo retry algorithm.

In the following scenario: error retry delay = 1, error retry delay = 2, error with no retry delay. Currently the client did not set retry delay duration which is default to 0 for the first attempt. This will cause all the subsequent attempts from the same error to not have any retry delay if the retry delay is not present.

The fix sets retry delay duration to be the retry delay from the last attempt. We'll decide if we want to change this behavior later.

Conformance test currently assumes that the client will reset the retry delay. So also disabling the conformance test for now.

@mutianf mutianf requested review from a team as code owners April 23, 2025 20:27
@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. api: bigtable Issues related to the googleapis/java-bigtable API. labels Apr 23, 2025
@mutianf mutianf marked this pull request as draft April 23, 2025 20:28
@mutianf mutianf marked this pull request as ready for review April 24, 2025 16:29
@mutianf mutianf requested a review from a team as a code owner April 24, 2025 16:29
@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. and removed size: xl Pull request size is extra large. labels Apr 24, 2025
@andre-sampaio
Copy link
Contributor

Is it feasible to add a test for this scenario? e.g. the actual behaviour of the retry when getting error retry delay = 1 -> error retry delay = 2 -> error with no retry delay

@mutianf
Copy link
Contributor Author

mutianf commented Apr 24, 2025

Is it feasible to add a test for this scenario? e.g. the actual behaviour of the retry when getting error retry delay = 1 -> error retry delay = 2 -> error with no retry delay

Yeah, in the conformance test once we decide what to do!

@andre-sampaio
Copy link
Contributor

lgtm!

@mutianf mutianf added the automerge Merge the pull request once unit tests and other checks pass. label Apr 28, 2025
@gcf-merge-on-green gcf-merge-on-green bot merged commit c424ccb into googleapis:main Apr 28, 2025
30 of 31 checks passed
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Apr 28, 2025
@mutianf mutianf deleted the fix branch April 28, 2025 16:34
gcf-merge-on-green bot pushed a commit that referenced this pull request Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the googleapis/java-bigtable API. size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.