@@ -83,26 +83,27 @@ public void setUp() throws IOException, InterruptedException {
83
83
if (operationFullPathsToBeDeleted .size () > 300 ) {
84
84
System .out .println ("Cleaning up..." );
85
85
86
-
87
86
for (String operationFullPath :
88
87
operationFullPathsToBeDeleted .subList (0 , operationFullPathsToBeDeleted .size () / 2 )) {
89
88
// retry_interval * (random value in range [1 - rand_factor, 1 + rand_factor])
90
- ExponentialBackOff exponentialBackOff = new ExponentialBackOff .Builder ()
91
- .setInitialIntervalMillis (60000 )
92
- .setMaxElapsedTimeMillis (300000 )
93
- .setRandomizationFactor (0.5 )
94
- .setMultiplier (1.1 )
95
- .setMaxIntervalMillis (80000 )
96
- .build ();
89
+ ExponentialBackOff exponentialBackOff =
90
+ new ExponentialBackOff .Builder ()
91
+ .setInitialIntervalMillis (60000 )
92
+ .setMaxElapsedTimeMillis (300000 )
93
+ .setRandomizationFactor (0.5 )
94
+ .setMultiplier (1.1 )
95
+ .setMaxIntervalMillis (80000 )
96
+ .build ();
97
97
98
98
// delete unused operations.
99
99
try {
100
100
operationsClient .deleteOperation (operationFullPath );
101
101
} catch (ResourceExhaustedException ex ) {
102
102
// exponential back off and retry.
103
103
long backOffInMillis = exponentialBackOff .nextBackOffMillis ();
104
- System .out .printf ("Backing off for %d milliseconds "
105
- + "due to Resource exhaustion.\n " , backOffInMillis );
104
+ System .out .printf (
105
+ "Backing off for %d milliseconds " + "due to Resource exhaustion.\n " ,
106
+ backOffInMillis );
106
107
if (backOffInMillis < 0 ) {
107
108
break ;
108
109
}
0 commit comments