API change: juju subcommands will wait for connection to Zookeeper
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.
> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 554 bytes
Desc: OpenPGP digital signature
More information about the Juju