hadoop-zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Hunt <ph...@apache.org>
Subject Re: question about watcher
Date Wed, 03 Nov 2010 15:33:08 GMT
Definitely checkout the 4letter words then (wch*). Keep in mind
getting this data may be expensive (if there's alot of it) and that
watches are locak, so servers only know about the watches from
sessions est through it (server 1 doesn't know about watches of
sessions connected on server 2, 3, etc...).

Patrick

On Wed, Nov 3, 2010 at 1:13 AM, Qian Ye <yeqian.zju@gmail.com> wrote:
> thanks Patrick, I want to know all watches set by all clients.
> I would open a jira and write some design think about it later.
>
> On Tue, Nov 2, 2010 at 11:53 PM, Patrick Hunt <phunt@apache.org> wrote:
>
>> Hi Qian Ye, yes you should open a JIRA for this. If you want to work
>> on a patch we could advise you. One thing not clear to me, are you
>> interested in just the watches set by the particular client, or all
>> watches set by all clients? The first should be relatively easy to
>> get, the second would be more involved (the difference btw getting
>> local watches and having to talk to the server to get all watches).
>> Does this have to be a client api or more administrative in nature?
>> Also see
>> http://hadoop.apache.org/zookeeper/docs/current/zookeeperAdmin.html#sc_zkCommands
>> specifically the "wchs,wchp,wchs" 4 letter words.
>>
>> Regards,
>>
>> Patrick
>>
>> On Tue, Nov 2, 2010 at 4:11 AM, Qian Ye <yeqian.zju@gmail.com> wrote:
>> > Hi all,
>> >
>> > Is there any progress about this issue? Should we open a new JIRA for it?
>> We
>> > really need a way to know who set watchers on a specific node.
>> >
>> > thanks~
>> >
>> > On Thu, Aug 6, 2009 at 11:01 PM, Qian Ye <yeqian.zju@gmail.com> wrote:
>> >
>> >> Thanks Mahadev, I think it is a useful feature for many scenarios.
>> >>
>> >>
>> >> On Thu, Aug 6, 2009 at 12:59 PM, Mahadev Konar <mahadev@yahoo-inc.com
>> >wrote:
>> >>
>> >>> Hi Qian,
>> >>>  There isnt any such api. We have been thinking abt adding an api on
>> >>> cancelling a cleints watches. We have been thinking about adding a proc
>> >>> filesystem wherein a cleintt will have a list of all the watches. This
>> >>> data
>> >>> can be used to know which clients are watching what znode, but this
has
>> >>> always been in the future discussions for us. We DO NOT have anything
>> >>> planned in the near future for this.
>> >>>
>> >>> Thanks
>> >>> mahadev
>> >>>
>> >>>
>> >>> On 8/5/09 6:57 PM, "Qian Ye" <yeqian.zju@gmail.com> wrote:
>> >>>
>> >>> > Hi all:
>> >>> >
>> >>> > Is there a client API for querying the watchers' owner for a specific
>> >>> znode?
>> >>> > In some situation, we want to find out who set watchers on the
znode.
>> >>> >
>> >>> > thx
>> >>>
>> >>>
>> >>
>> >>
>> >> --
>> >> With Regards!
>> >>
>> >> Ye, Qian
>> >> Made in Zhejiang University
>> >>
>> >>
>> >
>> >
>> > --
>> > With Regards!
>> >
>> > Ye, Qian
>> >
>>
>
>
>
> --
> With Regards!
>
> Ye, Qian
>

Mime
View raw message