ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-480

FLE should perform leader check when node is not leading and add vote of follower

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.2.1, 3.3.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      As a server may join leader election while others have already elected a leader, it is necessary that a server handles some special cases of leader election when notifications are from servers that are either LEADING or FOLLOWING. In such special cases, we check if we have received a message from the leader to declare a leader elected. This check does not consider the case that the process performing the check might be a recently elected leader, and consequently the check fails.

      This patch also adds a new case, which corresponds to adding a vote to recvset when the notification is from a process LEADING or FOLLOWING. This fixes the case raised in ZOOKEEPER-475.

      1. ZOOKEEPER-480.patch
        3 kB
        Flavio Junqueira
      2. ZOOKEEPER-480.patch
        10 kB
        Flavio Junqueira
      3. ZOOKEEPER-480.patch
        11 kB
        Flavio Junqueira
      4. ZOOKEEPER-480-3.2branch.patch
        11 kB
        Flavio Junqueira
      5. ZOOKEEPER-480.patch
        11 kB
        Flavio Junqueira
      6. ZOOKEEPER-480.patch
        10 kB
        Flavio Junqueira
      7. ZOOKEEPER-480-3.2branch.patch
        10 kB
        Flavio Junqueira

        Issue Links

          Activity

            People

            • Assignee:
              Flavio Junqueira
              Reporter:
              Flavio Junqueira
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development