API change: juju subcommands will wait for connection to Zookeeper

Jim Baker jim.baker at canonical.com
Thu Nov 17 19:05:07 UTC 2011

On 11/17/2011 11:47 AM, Gustavo Niemeyer wrote:
>>> One alternative was to put the waiting in the bootstrap subcommand, but
>>> this approach feels much cleaner. All subcommands that depend on ZK will
>>> simply be gated in this fashion.
>> Yep -- as I recall the motivation was that juju commands should block
>> until they've read/written all the state they're responsible for. So
>> bootstrap exits fast, because it does all it can quite quickly; the next
>> command may block for a while because it's waiting for state to exist,
>> but once it's performed its interactions it too can exit.
>> +1.
> Indeed. It would be nice to have that rationale as part of the spec, Jim.
>  +1 from me too as we talked over UDS.
Certainly, I'll make sure that this rationale is added explicitly.

- Jim

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/juju/attachments/20111117/91d1feda/attachment.pgp>

More information about the Juju mailing list