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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.0
    • 3.2.1, 3.3.0
    • None
    • None
    • 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.

      Attachments

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

        Issue Links

          Activity

            People

              fpj Flavio Paiva Junqueira
              fpj Flavio Paiva Junqueira
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: