> @@ -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);

Thanks for explaining. I guess it does not make sense to try to delete the 
container _anyway_? Are there APIs where the "clear" might fail but the delete 
could succeed after all?

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

Reply via email to