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