Including quorum config when standalone leads to crash
------------------------------------------------------
Key: ZOOKEEPER-680
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-680
Project: Zookeeper
Issue Type: Bug
Components: server
Affects Versions: 3.2.2
Environment: RHEL
Reporter: Vegard B. Havdal
Priority: Minor
Include server.#=... and/or a myid file when running standalone, zk server will
crash with
java.lang.NullPointerException
at
org.apache.zookeeper.server.quorum.FastLeaderElection.totalOrderPredicate(FastLeaderElection.java:466)
at
org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLeaderElection.java:635)
at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:515)
Seen when running zk embedded in other server, using
String[] args = new String[]{zookeeperCfgFile};
org.apache.zookeeper.server.quorum.QuorumPeerMain.main(args);
The workaround is of course to fix the config, but 3.1.1 managed to not crash
on this.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.