jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ignasi Barrera <notificati...@github.com>
Subject Re: [jclouds-labs] JCLOUDS-702: JClouds ProfitBricks provider - ComputeServiceAdapter (#145)
Date Wed, 15 Apr 2015 14:45:43 GMT
> +                    Storage.Request.connectingBuilder()
> +                    .storageId(storageId)
> +                    .serverId(serverId)
> +                    .build());
> +
> +            waitDcUntilAvailable.apply(dataCenterId);
> +            logger.trace(">> storage connected.");
> +         } catch (Exception ex) {
> +            // delete unconnected storage
> +            logger.warn(ex, ">> failed to connect storage '%s'. deleting..", storageId);
> +            waitDcUntilAvailable.apply(dataCenterId);
> +            destroyStorage(storageId, dataCenterId);
> +         }
> +      }
> +
> +      waitDcUntilAvailable.apply(dataCenterId);

Is this wait needed? Each step in the loop/catch will already perform an active wait.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/145/files#r28425751
Mime
View raw message