symious opened a new pull request, #3401:
URL: https://github.com/apache/ozone/pull/3401

   ## What changes were proposed in this pull request?
   
   The current logic to decide the LEADER of SCM is to check if the RaftPeer is 
local, 
https://github.com/apache/ozone/blob/master/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/ha/SCMRatisServerImpl.java#L268
   
   I assuem this is because the "scm roles" requests are forwarded to the 
LEADER SCM, so the invoker is always the leader, thus "isLocal" is used to 
decide which SCM is LEADER.
   
   But in SCM UI, the "SCM HA (roles)" information are retrived by invoking 
"getRatisRoles" by each SCM, not forwarded to the LEADER SCM, thus each SCM 
will consider itself as the LEADER in UI.
   
   This ticket is to fix this issue.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-6728
   
   ## How was this patch tested?
   
   unit test.
   


-- 
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]

Reply via email to