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

NPE triggered if server receives a vote for a server id not in their voting view

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.5.3, 3.4.11, 3.4.12
    • Fix Version/s: 3.5.4, 3.6.0, 3.4.13
    • Component/s: leaderElection
    • Labels:
      None

      Description

      We've observed the following behavior in elections when a node is lagging behind the quorum in its view of the ensemble topology.

      • Node A is operating with node B in its voting view, but without view of node C.
      • B votes for C.
      • A then switches its vote to C, but throws a NPE when attempting to connect.

      This causes the QuorumPeer to spin up a Follower only to immediately have it shutdown by the exception.

      Ideally, A would not advertise a vote for a server that it will not follow.

        Attachments

          Activity

            People

            • Assignee:
              enixon Brian Nixon
              Reporter:
              enixon Brian Nixon
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: