Merge pull request #1095 from andrewgaul/delete-all-keys-in-list-debug-logging

Add more logging to DeleteAllKeysInList
This commit is contained in:
Adrian Cole 2012-12-27 08:19:56 -08:00
commit 0880245150
1 changed files with 3 additions and 1 deletions

View File

@ -88,7 +88,8 @@ public class DeleteAllKeysInList implements ClearListStrategy, ClearContainerStr
containerName);
options = options.clone();
if (options.isRecursive())
message = message + " recursively";
message += " recursively";
logger.debug(message);
Map<StorageMetadata, Exception> exceptions = Maps.newHashMap();
int maxErrors = 3; // TODO parameterize
for (int numErrors = 0; numErrors < maxErrors; ) {
@ -188,6 +189,7 @@ public class DeleteAllKeysInList implements ClearListStrategy, ClearContainerStr
if (marker == null) {
break;
}
logger.debug("%s with marker %s", message, marker);
options = options.afterMarker(marker);
// Reset numErrors if we execute a successful iteration. This ensures