From 25b012587d2573115441deb78ccfda17a8b0dd2a Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Mon, 21 Jan 2013 18:20:56 -0800 Subject: [PATCH] Skip exponential backoff if we exceed maxErrors --- .../blobstore/strategy/internal/DeleteAllKeysInList.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/blobstore/src/main/java/org/jclouds/blobstore/strategy/internal/DeleteAllKeysInList.java b/blobstore/src/main/java/org/jclouds/blobstore/strategy/internal/DeleteAllKeysInList.java index 52e02e346b..7da98da1a6 100644 --- a/blobstore/src/main/java/org/jclouds/blobstore/strategy/internal/DeleteAllKeysInList.java +++ b/blobstore/src/main/java/org/jclouds/blobstore/strategy/internal/DeleteAllKeysInList.java @@ -179,6 +179,9 @@ public class DeleteAllKeysInList implements ClearListStrategy, ClearContainerStr if (!exceptions.isEmpty()) { ++numErrors; + if (numErrors == maxErrors) { + break; + } retryHandler.imposeBackoffExponentialDelay(numErrors, message); continue; }