Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2EE31178C5 for ; Tue, 28 Apr 2015 16:40:23 +0000 (UTC) Received: (qmail 85951 invoked by uid 500); 28 Apr 2015 16:40:22 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 85896 invoked by uid 500); 28 Apr 2015 16:40:22 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 85885 invoked by uid 99); 28 Apr 2015 16:40:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Apr 2015 16:40:22 +0000 X-ASF-Spam-Status: No, hits=3.2 required=5.0 tests=HTML_MESSAGE,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of bheathr@gmail.com does not designate 54.76.25.247 as permitted sender) Received: from [54.76.25.247] (HELO mx1-eu-west.apache.org) (54.76.25.247) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Apr 2015 16:39:57 +0000 Received: from mail-oi0-f46.google.com (mail-oi0-f46.google.com [209.85.218.46]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 4F64728021 for ; Tue, 28 Apr 2015 16:39:55 +0000 (UTC) Received: by oift201 with SMTP id t201so363528oif.3 for ; Tue, 28 Apr 2015 09:39:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-type; bh=PBcevET2qJ+P2JNqig8OU/GP+Vm4pwWR/iZgok3TsOY=; b=gQo2aSLSb1cV6vCn1tzeSWaOqW2nK+p8pUAC+jkgF354QEh4lqDdKsd15EHUCdgbQ6 9LtLhTg42V48i+7e//jUmETkDa5OcPSGw/pLffyRAIby/8xnN8yi5NGrgeaqfeMGh8D0 7c+XiFDj1y+oogkRJfHaT9/FX7rnzthM33VrolAmSCUWNxh6cbo1+40GF0vluYYnL0Z9 6JcEJfYyRvI8nIOmmAATtYcJUOeE9mLrCnvcM4xVkJiG5GC0PeeAIqIN/DIkIuL66CJ1 e8PPe+cqzapdcjJxHdVzuXlrEnNk4K/PDNDI9OisKHRZ8TpsrzCy7QGn+EhxIiFnp+g8 VSOQ== X-Received: by 10.182.87.36 with SMTP id u4mr15126440obz.50.1430239194094; Tue, 28 Apr 2015 09:39:54 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "B. Heath Robinson" Date: Tue, 28 Apr 2015 16:39:53 +0000 Message-ID: Subject: Re: List Watches of a node To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=089e013d0ddc1bb4230514cb8391 X-Virus-Checked: Checked by ClamAV on apache.org --089e013d0ddc1bb4230514cb8391 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks. I ran into these, but they don't seem to working as I expected. For example: hrobinson@fortress:~$ echo mntr |nc 10.1.0.172 2181 zk_version 3.4.6-1569965, built on 02/20/2014 09:09 GMT zk_avg_latency 0 zk_max_latency 441 zk_min_latency 0 zk_packets_received 28675194 zk_packets_sent 28674836 zk_num_alive_connections 153 zk_outstanding_requests 0 zk_server_state follower zk_znode_count 1580 zk_watch_count 147 zk_ephemerals_count 129 zk_approximate_data_size 274629 zk_open_file_descriptor_count 183 zk_max_file_descriptor_count 4096 hrobinson@fortress:~$ echo wchp|nc 10.1.0.172 2181 hrobinson@fortress:~$ My cluster does have 7 members, and the way I read the docs for wchp, it only returns watches on that server, so I did the same wchp for all 7 members, and I get nothing. On Tue, Apr 28, 2015 at 11:17 AM Chris Nauroth wrote: > One thing to keep in mind is that the wchs, wchp and wchc commands > currently return information only about data change watches (Watcher > instances passed to ZooKeeper#exists or ZooKeeper#getData). These > commands will not return information about child watches (Watcher > instances passed to ZooKeeper#getChildren). ZOOKEEPER-1274 is an open > issue tracking enhancements to these commands to support returning > information about child watches too. > > https://issues.apache.org/jira/browse/ZOOKEEPER-1274 > > > --Chris Nauroth > > > > > On 4/28/15, 8:23 AM, "S=C3=A9kine Coulibaly" wrote= : > > >The four letters command can be of some help here : > > > >echo "wchp" | nc localhost 2181 > > > >Do you need access from a Java or C API ? > > > >Reference: > > > http://zookeeper.apache.org/doc/trunk/zookeeperAdmin.html#The+Four+Letter= + > >Words > > > > > >2015-04-28 16:45 GMT+02:00 B. Heath Robinson : > > > >> I have a system where a client watches ephemeral nodes. I would like > >>to be > >> able to know if there are any watches for a node. Is there any way to > >>do > >> this? > >> > > --089e013d0ddc1bb4230514cb8391--