fix: fix retry info algorithm setting (#2562) · googleapis/java-bigtable@c424ccb · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

Commit c424ccb

Browse files
authored
fix: fix retry info algorithm setting (#2562)
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.
1 parent 3b51e12 commit c424ccb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/gaxx/retrying/RetryInfoRetryAlgorithm.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public TimedAttemptSettings createNextAttempt(
3838
java.time.Duration retryDelay = extractRetryDelay(prevThrowable);
3939
if (retryDelay != null) {
4040
return prevSettings.toBuilder()
41+
.setRetryDelayDuration(retryDelay)
4142
.setRandomizedRetryDelayDuration(retryDelay)
4243
.setAttemptCount(prevSettings.getAttemptCount() + 1)
4344
.setOverallAttemptCount(prevSettings.getAttemptCount() + 1)

test-proxy/known_failures.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
TestExecuteQuery|TestFeatureGap/(traffic_director_enabled|direct_access_requested)
1+
TestExecuteQuery|TestFeatureGap/(traffic_director_enabled|direct_access_requested)|TestReadRows_Retry_WithRetryInfo_MultipleErrorResponse

0 commit comments

Comments
 (0)

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.