zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rakesh R <rake...@huawei.com>
Subject RE: why watch count is different when use mntr and wchs command?
Date Thu, 06 Nov 2014 07:52:56 GMT
Hi,

I think you have data watches as well as child watches registered.

mntr -> gives the total (data + child) watches count.

wchs -> gives only the data watches count. FYI: There is an open jira ZOOKEEPER-1274 to
include child watches information in watch command. Its marked for 3.5.1 release.

-Rakesh

-----Original Message-----
From: ch huang [mailto:justlooks@gmail.com] 
Sent: 06 November 2014 12:28
To: user@zookeeper.apache.org
Subject: why watch count is different when use mntr and wchs command?

hi,maillist:
    when i use mntr i get watchcount ,but it is different with i get from wchs ,why?

# echo 'mntr' | nc 192.168.26.231 2181
zk_watch_count  41

# echo 'wchs' | nc 192.168.26.231 2181
Total watches:26
Mime
View raw message