Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Implemented
-
None
-
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
Attachments
Issue Links
- links to