Re: Missing statement in DataMonitor example ?

2008-12-11 Thread Patrick Hunt
Hi Hanson, I think that the code is OK in this situation, however the comment is misleading. In ZooKeeper version 3 watches are re-registered when the client reconnects to a server. See this section of the docs: http://hadoop.apache.org/zookeeper/docs/r3.0.1/zookeeperProgrammers.html#ch_zkWatc

zoo_set() version question

2008-12-11 Thread Avery Ching
If zoo_set() completes successfully with version != -1, can we assume that version -> version + 1 for this znode? If not, is there a way for the user to get the version of the successfully completed zoo_set() operation? Thanks! Avery