Call BlobUtils.clearContainer directly

BaseAsyncBlobStore.clearContainer returns a Future which we previously
did not manage correctly, hanging when deleting non-existent
containers.  Call BlobUtils.clearContainer directly to address this.
This commit is contained in:
Andrew Gaul 2013-01-23 22:24:39 -08:00
parent fc892e9226
commit 0053c77b9b
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ public abstract class BaseAsyncBlobStore implements AsyncBlobStore {
if (!Assertions.eventuallyTrue(new Supplier<Boolean>() { if (!Assertions.eventuallyTrue(new Supplier<Boolean>() {
public Boolean get() { public Boolean get() {
try { try {
clearContainer(container, recursive()); blobUtils.clearContainer(container, recursive());
return deleteAndVerifyContainerGone(container); return deleteAndVerifyContainerGone(container);
} catch (ContainerNotFoundException e) { } catch (ContainerNotFoundException e) {
return true; return true;