File tree
Expand file treeCollapse file tree1 file changed
+3
-2
lines changed google-cloud-spanner/src/main/java/com/google/cloud/spanner
Expand file treeCollapse file tree1 file changed
+3
-2
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -855,8 +855,9 @@ private static ExponentialBackOff newBackOff() {
|
855 | 855 | return new ExponentialBackOff.Builder()
|
856 | 856 | .setMultiplier(_RETRY_SETTINGS.getRetryDelayMultiplier())
|
857 | 857 | .setInitialIntervalMillis(
|
858 |
| -(int) _RETRY_SETTINGS.getInitialRetryDelay().toMillis()) |
859 |
| -.setMaxIntervalMillis((int) _RETRY_SETTINGS.getMaxRetryDelay().toMillis()) |
| 858 | +Math.max(10, (int) _RETRY_SETTINGS.getInitialRetryDelay().toMillis())) |
| 859 | +.setMaxIntervalMillis( |
| 860 | +Math.max(1000, (int) _RETRY_SETTINGS.getMaxRetryDelay().toMillis())) |
860 | 861 | .setMaxElapsedTimeMillis(Integer.MAX_VALUE) // Prevent Backoff.STOP from getting returned.
|
861 | 862 | .build();
|
862 | 863 | }
|
|
You can’t perform that action at this time.
0 commit comments