How to check the list of watches
Zookeeper use watches to notify a client on znode changes. This article explains how to check watches set by ZooKeeper servers and how it is used.
Zookeeper uses the
'wchc' command to list all watches set on the Zookeeper server.
# echo wchc | nc zookeeper 2181
By default those commands are disabled, they can be enabled via Java system property:
on in zookeeper config: