mirror of https://github.com/apache/jclouds.git
Add more logging to DeleteAllKeysInList
This allows monitoring of progress of long deletes via debug logs.
This commit is contained in:
parent
1d68c237ad
commit
e804c00b8e
|
@ -89,7 +89,8 @@ public class DeleteAllKeysInList implements ClearListStrategy, ClearContainerStr
|
||||||
containerName);
|
containerName);
|
||||||
options = options.clone();
|
options = options.clone();
|
||||||
if (options.isRecursive())
|
if (options.isRecursive())
|
||||||
message = message + " recursively";
|
message += " recursively";
|
||||||
|
logger.debug(message);
|
||||||
Map<StorageMetadata, Exception> exceptions = Maps.newHashMap();
|
Map<StorageMetadata, Exception> exceptions = Maps.newHashMap();
|
||||||
int maxErrors = 3; // TODO parameterize
|
int maxErrors = 3; // TODO parameterize
|
||||||
for (int numErrors = 0; numErrors < maxErrors; ) {
|
for (int numErrors = 0; numErrors < maxErrors; ) {
|
||||||
|
@ -189,6 +190,7 @@ public class DeleteAllKeysInList implements ClearListStrategy, ClearContainerStr
|
||||||
if (marker == null) {
|
if (marker == null) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
logger.debug("%s with marker %s", message, marker);
|
||||||
options = options.afterMarker(marker);
|
options = options.afterMarker(marker);
|
||||||
|
|
||||||
// Reset numErrors if we execute a successful iteration. This ensures
|
// Reset numErrors if we execute a successful iteration. This ensures
|
||||||
|
|
Loading…
Reference in New Issue