zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prabhjot Bharaj <prabhbha...@gmail.com>
Subject Zookeeper leader not getting lock
Date Thu, 28 May 2015 18:40:18 GMT
Hi Folks,

I have a 3 node zookeeper cluster. While working on it, I've come to notice
that sometimes that lock gets acquired by the follower and the leader is
unable to acquire the lock. I'm able to see this clearly as per the
script's output log. This script runs as a cron on all the 3 nodes and all
3 nodes try to acquire the lock

After my script runs on all the nodes, I can see by running echo stat | nc
localhost 2181 on all machines that the machine which has got the lock and
ran the script successfully is a follower and not a leader.

I'm thinking that the follower should not be able to get a lock. Am I
thinking wrong somewhere ? Please point me to the correct direction.



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message