mirror of https://github.com/apache/jclouds.git
Skip exponential backoff if we exceed maxErrors
This commit is contained in:
parent
dce830adb9
commit
25b012587d
|
@ -179,6 +179,9 @@ public class DeleteAllKeysInList implements ClearListStrategy, ClearContainerStr
|
||||||
|
|
||||||
if (!exceptions.isEmpty()) {
|
if (!exceptions.isEmpty()) {
|
||||||
++numErrors;
|
++numErrors;
|
||||||
|
if (numErrors == maxErrors) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
retryHandler.imposeBackoffExponentialDelay(numErrors, message);
|
retryHandler.imposeBackoffExponentialDelay(numErrors, message);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue