mirror of https://github.com/apache/jclouds.git
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:
parent
fc892e9226
commit
0053c77b9b
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue