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? -Flavio > -----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 > at > org.apache.zookeeper.server.quorum.QuorumCnxManager$SendWorker.run(QuorumC > nxManager.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