zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rakesh R <rake...@huawei.com>
Subject RE: event loss?
Date Wed, 11 Apr 2012 14:45:15 GMT
Hi Peter, 

Hope your appln code is ensuring the watch registration?
I could see one case, say, zkCli-3 has invoked getData(), before reaching this to the zkserver,
setData() has been called by the zkCli-2. Here, it will miss the notification. 
Are you able to re-produce it..

From: Wangpei (Peter) [peter.wangpei@huawei.com]
Sent: Wednesday, April 11, 2012 1:08 PM
To: user@zookeeper.apache.org
Subject: event loss?

My scenario:
Three ZK client on different computer.

1.  if needed, it set data on /PathA to trigger the 2nd client.

2.  Set a watcher on /PathA with getData(). when it is triggered, it will do something and
set data on /PathB to trigger the 3rd client.

3.  Set a watcher on /PathB with getData().
The code for set watcher and setData is the same.

Now, the watcher of 2nd client is triggered as wish, but watcher of 3rd client is not triggered
at all. There are no any error log at either client.
Any suggestion?
The zookeeper cluster is 3 server, version 3.3.5. All client is run with curator-client version

View raw message