Skip exponential backoff if we exceed maxErrors

This commit is contained in:
Andrew Gaul 2013-01-21 18:20:56 -08:00
parent dce830adb9
commit 25b012587d
1 changed files with 3 additions and 0 deletions

View File

@ -179,6 +179,9 @@ public class DeleteAllKeysInList implements ClearListStrategy, ClearContainerStr
if (!exceptions.isEmpty()) {
++numErrors;
if (numErrors == maxErrors) {
break;
}
retryHandler.imposeBackoffExponentialDelay(numErrors, message);
continue;
}