Hi Qian,
 The watcher information is saved at the client, and the client will
reattach the watches to the new server it connects to.
  Hope that helps.

Thanks
mahadev


On 8/16/10 9:28 AM, "Qian Ye" <yeqian....@gmail.com> wrote:

> thx for explaination. Since the watcher can be preserved when the client
> switch the zookeeper server it connects to, does that means all the watchers
> information will be saved on all the zookeeper servers? I didn't find any
> source of the client can hold the watchers information.
> 
> 
> On Tue, Aug 17, 2010 at 12:21 AM, Ted Dunning <ted.dunn...@gmail.com> wrote:
> 
>> I should correct this.  The watchers will deliver a session expiration
>> event, but since the connection is closed at that point no further
>> events will be delivered and the cluster will remove them.  This is as good
>> as the watchers disappearing.
>> 
>> On Mon, Aug 16, 2010 at 9:20 AM, Ted Dunning <ted.dunn...@gmail.com>
>> wrote:
>> 
>>> The other is session expiration.  Watchers do not survive this.  This
>>> happens when a client does not provide timely
>>> evidence that it is alive and is marked as having disappeared by the
>>> cluster.
>>> 
>> 
> 
> 
> 
> --
> With Regards!
> 
> Ye, Qian
> 

Reply via email to