hadoop-zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <ted.dunn...@gmail.com>
Subject Re: NodeChildrenChanged WatchedEvent
Date Sat, 09 May 2009 06:16:27 GMT
You can do this with the current API.

Just call zk.exists() with a watch set and compare the version numbers in
the returned stat field.  If they are the same, then no changes happened
before the exists() call and all subsequent changes will be signaled to the
watcher.

On Fri, May 8, 2009 at 5:14 PM, raghul@yahoo.com <raghul@yahoo.com> wrote:

>
> Would it help if we have a seperate API to set a watch on a node, but the
> client sends the previous version of the node it saw as a parameter.




-- 
Ted Dunning, CTO
DeepDyve

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message