ivandika3 opened a new pull request, #5549: URL: https://github.com/apache/ozone/pull/5549
## What changes were proposed in this pull request? 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 back 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). ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-9627 ## How was this patch tested? TODO -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
