Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Implemented
    • None
    • 1.4.0
    • None

    Description

      Currently, Ratis transfer leadership uses priority as a way for the previous leader to yield its leadership to the target peer with higher priority.

      The implementation in Ozone uses setConfiguration API to set the target peer's priority to 2 while the rest is set to 1.

      However, we need to reset the priorities to 1 after transfer leadership (regardless of the transfer leadership result) to avoid cases where the same Raft peer will always be favored to be the leader (even if the peer is slow).

      There is also a new way to transfer leadership logic without changing priorities, this can be done in a separate task.

      Attachments

        1. 5549_review.patch
          11 kB
          Tsz-wo Sze

        Issue Links

          Activity

            People

              ivanandika Ivan Andika
              ivanandika Ivan Andika
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: