To say that it will "never return" is not correct. The client will be
notified of "connectionloss" in the callback, however the client will
not know if the operation was successful (from point of view of the
server) or not.
Kevin Burton wrote:
On Wed, Jan 7, 2009 at 11:12 AM, Mahadev Konar <maha...@yahoo-inc.com>wrote:
You are right Pat. Replaying an async operation would involve a lot of
management for clients across servers and would involve a lot more work in
determining which operation succeeded and the one which needs to be re run
and the semantics of zookeeper client calls would be much harder to
OK..... so maybe a sane middle ground would be to put a warning in the code
that an async operation might never return.
I think a generalization about ZK right now (at least based on my current
perspective) is that it makes it too easy to run with scissors.
ZK probably will work fine with all servers in an ensemble connected but if
one goes away you need to be VERY careful about how you code your app.