I have also tried with your configuration, just changing the datadir
parameter and the servers, and all seem to work fine. I have also killed
followers and leaders multiple times and in different orders to see if I
observed any issue, and I still can't see anything.
In your case, have you observed the problem just once, or it happened
consistently every time you tried?
> -----Original Message-----
> From: Anthony Urso [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 19, 2008 3:49 AM
> To: email@example.com
> Subject: Fast leader election algorithm throws NPE and hangs
> 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
> The rest just hang while running an election:
> 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-
> org.apache.zookeeper.server.quorum.QuorumPeerMain zoo.cfg &
> original zoo.cfg:
> I don't know if this is a bug or a misconfiguration.