We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 122a997 commit 543373bCopy full SHA for 543373b
google-cloud-spanner/src/main/java/com/google/cloud/spanner/AbstractResultSet.java
@@ -855,8 +855,9 @@ private static ExponentialBackOff newBackOff() {
855
return new ExponentialBackOff.Builder()
856
.setMultiplier(STREAMING_RETRY_SETTINGS.getRetryDelayMultiplier())
857
.setInitialIntervalMillis(
858
- (int) STREAMING_RETRY_SETTINGS.getInitialRetryDelay().toMillis())
859
- .setMaxIntervalMillis((int) STREAMING_RETRY_SETTINGS.getMaxRetryDelay().toMillis())
+ Math.max(10, (int) STREAMING_RETRY_SETTINGS.getInitialRetryDelay().toMillis()))
+ .setMaxIntervalMillis(
860
+ Math.max(1000, (int) STREAMING_RETRY_SETTINGS.getMaxRetryDelay().toMillis()))
861
.setMaxElapsedTimeMillis(Integer.MAX_VALUE) // Prevent Backoff.STOP from getting returned.
862
.build();
863
}
0 commit comments