zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Gómez Ferro <danie...@yahoo-inc.com>
Subject Re: Adding watcher on the same zk node multiple times - jute.maxbuffer
Date Fri, 19 Oct 2012 09:59:15 GMT


On Fri Oct 19 07:43:45 2012, Parkirat Bagga wrote:
> Hi,
>
> I am using zookeerper version 3.3.3. My program is adding exists,
> getchildren and getdata watchers on 1 zk node every 30 secs. We have other
> watchers also.
>
> The watcher object is singleton. So essentially, the watcher object which
> gets attached is same every time.
>
> So number of notifications comes for that node is only 1 when something
> happens on that node.
>
> Is it possible that this operation of adding same watcher multiple times
> affect jute.maxbuffer limit in any way?
>
> Does this operation add multiple watchers or the same watcher gets
> overridden?

If you add the same object as a watcher several times (for a given 
path) it will only be triggered once since ZK keeps a set of watcher 
objects per path. I don't know if this is stated on the documentation 
or the API.

Maybe a clarification should be added somewhere?

>
> Regards,
> Parkirat Singh Bagga.
>
>
>
> --
> View this message in context: http://zookeeper-user.578899.n2.nabble.com/Adding-watcher-on-the-same-zk-node-multiple-times-jute-maxbuffer-tp7578106.html
> Sent from the zookeeper-user mailing list archive at Nabble.com.

Mime
View raw message