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:[email protected]] 
Sent: 06 November 2014 12:28
To: [email protected]
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

Reply via email to