zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fansong Zeng <fanste...@gmail.com>
Subject Re: Watch: One time event -> Loss of event
Date Fri, 13 Jun 2014 04:34:59 GMT
you can't see all changes use the zookeeper watcher directly, but you
can achieve that purpose with it.


2014-06-13 2:46 GMT+08:00 Mudit Verma <mudit.f2004912@gmail.com>:

> Sorry!! we can set the watch while reading itself.
>
> On 12 Jun 2014, at 08:43 pm, Mudit Verma <mudit.f2004912@gmail.com> wrote:
>
> > I don’t think your solution will work. For example, somebody might
> change the data between you reading the data again for comparision and you
> setting the watch. You just can not gaurantee no operation will occur
> between reading and setting the watch, unless you use transactions (so that
> reading and setting the watch both go atomically).
> >
> > Also, in your solution, I will have to keep the previous data for all
> znodes (where I want watches). That’s like replicated everything locally as
> well.
> >
> > On 12 Jun 2014, at 07:35 pm, Flavio Junqueira
> <fpjunqueira@yahoo.com.INVALID> wrote:
> >
> >>
> >
>
>

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