ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-769

Leader can treat observers as quorum members

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.0
    • Fix Version/s: 3.4.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      Ubuntu Karmic x64

    • Hadoop Flags:
      Reviewed

      Description

      In short: it seems leader can treat observers as quorum members.

      Steps to repro:

      1. Server configuration: 3 voters, 2 observers (attached).
      2. Bring up 2 voters and one observer. It's enough for quorum.
      3. Shut down the one from the quorum who is the follower.

      As I understand, expected result is that leader will start a new election round so that to regain quorum.
      But the real situation is that it just says goodbye to that follower, and is still operable. (When I'm shutting down 3rd one – observer – leader starts trying to regain a quorum).

      (Expectedly, if on step 3 we shut down the leader, not the follower, remaining follower starta new leader election, as it should be).

      1. ZOOKEEPER-769.patch
        6 kB
        Sergey Doroshenko
      2. ZOOKEEPER-769.patch
        5 kB
        Henry Robinson
      3. zoo1.cfg
        0.6 kB
        Sergey Doroshenko
      4. warning.patch
        1 kB
        Sergey Doroshenko
      5. observer.log
        5 kB
        Sergey Doroshenko
      6. leader.log
        7 kB
        Sergey Doroshenko
      7. follower.log
        14 kB
        Sergey Doroshenko

        Issue Links

          Activity

            People

            • Assignee:
              Sergey Doroshenko
              Reporter:
              Sergey Doroshenko
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development