You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by nileader <ni...@gmail.com> on 2011/11/04 09:43:26 UTC

Will zookeeper server merge some watcher notifications?

Will zookeeper server merge some watcher notifications when client update
data of znode frequent!

Re: Will zookeeper server merge some watcher notifications?

Posted by nileader <ni...@gmail.com>.
Ok,thanks very much.

----
nileader ni掌柜的个人邮件.
Email/MSN:nileader@gmail.com

*这里一封来自ni掌柜个人邮箱的邮件.如果你觉得邮件内容中包含任何关于个人隐私的信息,请勿转发.谢谢.*



2011/11/7 Ted Dunning <te...@gmail.com>

> Yes.  Check the documentation about Watches.  Particular the part that says
> that you can't be sure to have one notification per change.
>
>
> http://zookeeper.apache.org/doc/r3.1.2/zookeeperProgrammers.html#ch_zkWatches
>
> On Sun, Nov 6, 2011 at 6:43 PM, nileader <ni...@gmail.com> wrote:
>
> > Is there any paper for this?
> >
> > ----
> > nileader ni掌柜的个人邮件.
> > Email/MSN:nileader@gmail.com
> >
> > *这里一封来自ni掌柜个人邮箱的邮件.如果你觉得邮件内容中包含任何关于个人隐私的信息,请勿转发.谢谢.*
> >
> >
> >
> > 2011/11/6 Ted Dunning <te...@gmail.com>
> >
> > > Yes.
> > >
> > > On Sat, Nov 5, 2011 at 5:24 AM, nileader <ni...@gmail.com> wrote:
> > >
> > > > Yeah, Thanks.
> > > >
> > > > I know zk server will notify it's znodes watcher. But i mean will
> > > zookeeper
> > > > server merge some watcher notifications when client update data of
> > znode
> > > *
> > > > frequently*!
> > > >
> > > > ----
> > > > nileader ni掌柜的个人邮件.
> > > > Email/MSN:nileader@gmail.com
> > > >
> > > > *这里一封来自ni掌柜个人邮箱的邮件.如果你觉得邮件内容中包含任何关于个人隐私的信息,请勿转发.谢谢.*
> > > >
> > > >
> > > >
> > > > 2011/11/4 Andrei Savu <sa...@gmail.com>
> > > >
> > > > > Check this page:
> > > > >
> > > > >
> > > >
> > >
> >
> http://zookeeper.apache.org/doc/r3.3.3/zookeeperProgrammers.html#ch_zkWatches
> > > > >
> > > > > *One-time trigger*
> > > > >
> > > > > One watch event will be sent to the client when the data has
> changed.
> > > For
> > > > > example, if a client does a getData("/znode1", true) and later the
> > data
> > > > for
> > > > > /znode1 is changed or deleted, the client will get a watch event
> for
> > > > > /znode1. If /znode1 changes again, no watch event will be sent
> unless
> > > the
> > > > > client has done another read that sets a new watch.
> > > > >
> > > > > On Fri, Nov 4, 2011 at 10:43 AM, nileader <ni...@gmail.com>
> > wrote:
> > > > >
> > > > > > Will zookeeper server merge some watcher notifications when
> client
> > > > update
> > > > > > data of znode frequent!
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Will zookeeper server merge some watcher notifications?

Posted by Ted Dunning <te...@gmail.com>.
Yes.  Check the documentation about Watches.  Particular the part that says
that you can't be sure to have one notification per change.

http://zookeeper.apache.org/doc/r3.1.2/zookeeperProgrammers.html#ch_zkWatches

On Sun, Nov 6, 2011 at 6:43 PM, nileader <ni...@gmail.com> wrote:

> Is there any paper for this?
>
> ----
> nileader ni掌柜的个人邮件.
> Email/MSN:nileader@gmail.com
>
> *这里一封来自ni掌柜个人邮箱的邮件.如果你觉得邮件内容中包含任何关于个人隐私的信息,请勿转发.谢谢.*
>
>
>
> 2011/11/6 Ted Dunning <te...@gmail.com>
>
> > Yes.
> >
> > On Sat, Nov 5, 2011 at 5:24 AM, nileader <ni...@gmail.com> wrote:
> >
> > > Yeah, Thanks.
> > >
> > > I know zk server will notify it's znodes watcher. But i mean will
> > zookeeper
> > > server merge some watcher notifications when client update data of
> znode
> > *
> > > frequently*!
> > >
> > > ----
> > > nileader ni掌柜的个人邮件.
> > > Email/MSN:nileader@gmail.com
> > >
> > > *这里一封来自ni掌柜个人邮箱的邮件.如果你觉得邮件内容中包含任何关于个人隐私的信息,请勿转发.谢谢.*
> > >
> > >
> > >
> > > 2011/11/4 Andrei Savu <sa...@gmail.com>
> > >
> > > > Check this page:
> > > >
> > > >
> > >
> >
> http://zookeeper.apache.org/doc/r3.3.3/zookeeperProgrammers.html#ch_zkWatches
> > > >
> > > > *One-time trigger*
> > > >
> > > > One watch event will be sent to the client when the data has changed.
> > For
> > > > example, if a client does a getData("/znode1", true) and later the
> data
> > > for
> > > > /znode1 is changed or deleted, the client will get a watch event for
> > > > /znode1. If /znode1 changes again, no watch event will be sent unless
> > the
> > > > client has done another read that sets a new watch.
> > > >
> > > > On Fri, Nov 4, 2011 at 10:43 AM, nileader <ni...@gmail.com>
> wrote:
> > > >
> > > > > Will zookeeper server merge some watcher notifications when client
> > > update
> > > > > data of znode frequent!
> > > > >
> > > >
> > >
> >
>

Re: Will zookeeper server merge some watcher notifications?

Posted by nileader <ni...@gmail.com>.
Is there any paper for this?

----
nileader ni掌柜的个人邮件.
Email/MSN:nileader@gmail.com

*这里一封来自ni掌柜个人邮箱的邮件.如果你觉得邮件内容中包含任何关于个人隐私的信息,请勿转发.谢谢.*



2011/11/6 Ted Dunning <te...@gmail.com>

> Yes.
>
> On Sat, Nov 5, 2011 at 5:24 AM, nileader <ni...@gmail.com> wrote:
>
> > Yeah, Thanks.
> >
> > I know zk server will notify it's znodes watcher. But i mean will
> zookeeper
> > server merge some watcher notifications when client update data of znode
> *
> > frequently*!
> >
> > ----
> > nileader ni掌柜的个人邮件.
> > Email/MSN:nileader@gmail.com
> >
> > *这里一封来自ni掌柜个人邮箱的邮件.如果你觉得邮件内容中包含任何关于个人隐私的信息,请勿转发.谢谢.*
> >
> >
> >
> > 2011/11/4 Andrei Savu <sa...@gmail.com>
> >
> > > Check this page:
> > >
> > >
> >
> http://zookeeper.apache.org/doc/r3.3.3/zookeeperProgrammers.html#ch_zkWatches
> > >
> > > *One-time trigger*
> > >
> > > One watch event will be sent to the client when the data has changed.
> For
> > > example, if a client does a getData("/znode1", true) and later the data
> > for
> > > /znode1 is changed or deleted, the client will get a watch event for
> > > /znode1. If /znode1 changes again, no watch event will be sent unless
> the
> > > client has done another read that sets a new watch.
> > >
> > > On Fri, Nov 4, 2011 at 10:43 AM, nileader <ni...@gmail.com> wrote:
> > >
> > > > Will zookeeper server merge some watcher notifications when client
> > update
> > > > data of znode frequent!
> > > >
> > >
> >
>

Re: Will zookeeper server merge some watcher notifications?

Posted by Ted Dunning <te...@gmail.com>.
Yes.

On Sat, Nov 5, 2011 at 5:24 AM, nileader <ni...@gmail.com> wrote:

> Yeah, Thanks.
>
> I know zk server will notify it's znodes watcher. But i mean will zookeeper
> server merge some watcher notifications when client update data of znode *
> frequently*!
>
> ----
> nileader ni掌柜的个人邮件.
> Email/MSN:nileader@gmail.com
>
> *这里一封来自ni掌柜个人邮箱的邮件.如果你觉得邮件内容中包含任何关于个人隐私的信息,请勿转发.谢谢.*
>
>
>
> 2011/11/4 Andrei Savu <sa...@gmail.com>
>
> > Check this page:
> >
> >
> http://zookeeper.apache.org/doc/r3.3.3/zookeeperProgrammers.html#ch_zkWatches
> >
> > *One-time trigger*
> >
> > One watch event will be sent to the client when the data has changed. For
> > example, if a client does a getData("/znode1", true) and later the data
> for
> > /znode1 is changed or deleted, the client will get a watch event for
> > /znode1. If /znode1 changes again, no watch event will be sent unless the
> > client has done another read that sets a new watch.
> >
> > On Fri, Nov 4, 2011 at 10:43 AM, nileader <ni...@gmail.com> wrote:
> >
> > > Will zookeeper server merge some watcher notifications when client
> update
> > > data of znode frequent!
> > >
> >
>

Re: Will zookeeper server merge some watcher notifications?

Posted by nileader <ni...@gmail.com>.
Yeah, Thanks.

I know zk server will notify it's znodes watcher. But i mean will zookeeper
server merge some watcher notifications when client update data of znode *
frequently*!

----
nileader ni掌柜的个人邮件.
Email/MSN:nileader@gmail.com

*这里一封来自ni掌柜个人邮箱的邮件.如果你觉得邮件内容中包含任何关于个人隐私的信息,请勿转发.谢谢.*



2011/11/4 Andrei Savu <sa...@gmail.com>

> Check this page:
>
> http://zookeeper.apache.org/doc/r3.3.3/zookeeperProgrammers.html#ch_zkWatches
>
> *One-time trigger*
>
> One watch event will be sent to the client when the data has changed. For
> example, if a client does a getData("/znode1", true) and later the data for
> /znode1 is changed or deleted, the client will get a watch event for
> /znode1. If /znode1 changes again, no watch event will be sent unless the
> client has done another read that sets a new watch.
>
> On Fri, Nov 4, 2011 at 10:43 AM, nileader <ni...@gmail.com> wrote:
>
> > Will zookeeper server merge some watcher notifications when client update
> > data of znode frequent!
> >
>

Re: Will zookeeper server merge some watcher notifications?

Posted by Andrei Savu <sa...@gmail.com>.
Check this page:
http://zookeeper.apache.org/doc/r3.3.3/zookeeperProgrammers.html#ch_zkWatches

*One-time trigger*

One watch event will be sent to the client when the data has changed. For
example, if a client does a getData("/znode1", true) and later the data for
/znode1 is changed or deleted, the client will get a watch event for
/znode1. If /znode1 changes again, no watch event will be sent unless the
client has done another read that sets a new watch.

On Fri, Nov 4, 2011 at 10:43 AM, nileader <ni...@gmail.com> wrote:

> Will zookeeper server merge some watcher notifications when client update
> data of znode frequent!
>