Ivan Andika created HDDS-9627:
---------------------------------

             Summary: Reset priorities after transfer leadership
                 Key: HDDS-9627
                 URL: https://issues.apache.org/jira/browse/HDDS-9627
             Project: Apache Ozone
          Issue Type: Sub-task
            Reporter: Ivan Andika
            Assignee: Ivan Andika


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

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).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to