> @@ -80,6 +91,23 @@
>     }
>  
>     @Override
> +   public void deleteContainer(String container) {
> +      if (!sync.deleteVault(container)) {
> +         deletePathAndEnsureGone(container);
> +      }
> +   }
> +
> +   @Override
> +   protected void deletePathAndEnsureGone(String container) {
> +      checkState(retry(new Predicate<String>() {
> +          public boolean apply(String container) {
> +             clearContainer(container);
> +             return sync.deleteVault(container);
> +          }
> +       }, inventoryUpdateTime).apply(container), "%s still exists after 
> deleting!", container);

Is `IllegalStateException` what we want to be throwing here..?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-aws/pull/49/files#r15468038

Reply via email to