Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-680

Including quorum config when standalone leads to crash

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.2.2
    • None
    • server
    • None
    • RHEL

    Description

      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.

      Attachments

        Activity

          People

            phunt Patrick D. Hunt
            vegardh Vegard B. Havdal
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: