zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Brown <Matthew.Br...@citrix.com>
Subject Re: Inconsistent connection listing for each Zookeeper server
Date Fri, 18 Apr 2014 16:50:45 GMT
I'm not sure what Zookeeper client you are using but typically when your
client(s) connect to your ensemble, the client driver will choose a random
server from the connection string to connect to.

When a client sets a watch, the watch is stored at the Zookeeper server
that the client is connected to only. So if you have a client connected to
server S1 that sets a bunch of watches on different paths, and another
client that connects to server S2 that sets a different series of watches,
only server S1 knows about the first client's watches and only S2 knows
about the second client's watches.

On 4/15/14, 8:38 PM, "zoolrunning" <jttmpmail@yahoo.com> wrote:

>Hello,
>
>We have a single node with three Zookeeper servers.  When I list out the
>watches for each server, the servers have different output.  Shouldn't the
>output be the same?
>
>The leader is the server with port 2182.  I have already cleared out the
>data directory.
>
>Here is the output of when I send commands to the servers:
>
>[root@j ~]# echo wchc |nc devzoo 2181
>0x1456766d7410003
>        /G.DEV/g/_c_ec6d2865-3d90-4977-8683-66e3c02b1d0f-lock-0000000000
>        /N/G
>        /G.DEV
>        /N/G/b
>        /N/G/b/b0000000000
>        /G.DEV/g/_c_56139136-d7f2-4b1f-9e5b-7c7d1f2679b8-lock-0000000001
>        /
>        /N
>        /G.DEV/g
>        /zookeeper/quota
>        /zookeeper
>
>[root@j ~]# echo wchc |nc devzoo 2182
>0x2456766d7500000
>        /G.DEV/g/_c_ec6d2865-3d90-4977-8683-66e3c02b1d0f-lock-0000000000
>
>[root@j ~]# echo wchc |nc devzoo 2183
>
>[root@j ~]# echo envi |nc devzoo 2181
>Environment:
>zookeeper.version=3.4.5-1392090, built on 09/30/2012 17:52 GMT
>host.name=devzoo.r.com
>java.version=1.7.0_45
>java.vendor=Oracle Corporation
>java.home=/usr/java/jdk1.7.0_45/jre
>java.class.path=/apps/zookeeper/bin/../build/classes:/apps/zookeeper/bin/.
>./build/lib/*.jar:/apps/zookeeper/bin/../lib/slf4j-log4j12-1.6.1.jar:/apps
>/zookeeper/bin/../lib/slf4j-api-1.6.1.jar:/apps/zookeeper/bin/../lib/netty
>-3.2.2.Final.jar:/apps/zookeeper/bin/../lib/log4j-1.2.15.jar:/apps/zookeep
>er/bin/../lib/jline-0.9.94.jar:/apps/zookeeper/bin/../zookeeper-3.4.5.jar:
>/apps/zookeeper/bin/../src/java/lib/*.jar:/apps/zookeeper/bin/../conf:
>java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr
>/lib
>java.io.tmpdir=/tmp
>java.compiler=<NA>
>os.name=Linux
>os.arch=amd64
>os.version=2.6.32-431.3.1.el6.x86_64
>user.name=www
>user.home=/export/home/www
>user.dir=/
>
>thanks,
>-john
>
>
>
>
>--
>View this message in context:
>http://zookeeper-user.578899.n2.nabble.com/Inconsistent-connection-listing
>-for-each-Zookeeper-server-tp7579778.html
>Sent from the zookeeper-user mailing list archive at Nabble.com.


Mime
View raw message