I updated trunk to current to get the diff for ZOOKEEPER-122, and I
stopped being able to run my dev zookeeper cluster in distributed
mode.  In order to get it running again, I had to specify the election
algorithm to be 0.

One of the servers gets this NPE:

Exception in thread "Thread-2" java.lang.NullPointerException
        at 
org.apache.zookeeper.server.quorum.QuorumCnxManager$SendWorker.run(QuorumCnxManager.java:518)

The rest just hang while running an election:

zoo.log:
2008-08-18 18:31:26,519 - INFO  [QuorumPeer:[EMAIL PROTECTED] - LOOKING
2008-08-18 18:31:26,537 - WARN  [QuorumPeer:[EMAIL PROTECTED] -
Election tally: 0

command line:
java -cp 
/home/anthonyu/lib/zookeeper/trunk/zookeeper-3.0.0.jar:/home/anthonyu/lib/log4j-1.2.15.jar:/home/anthonyu/lib/zookeeper/trunk/conf
org.apache.zookeeper.server.quorum.QuorumPeerMain zoo.cfg &

original zoo.cfg:
tickTime=2000
dataDir=/home/anthonyu/zookeeper
clientPort=2181
initLimit=5
syncLimit=2
server.1=zoo1:2182
server.2=zoo2:2182
server.3=zoo3:2182

I don't know if this is a bug or a misconfiguration.

Cheers,
Anthony

Reply via email to