Merge pull request #1218 from maginatics/delete-container-skip-exponential-backoff

Skip exponential backoff if we exceed maxErrors
This commit is contained in:
Adrian Cole 2013-01-21 19:59:44 -08:00
commit b890e1d36b
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;
}