[ 
https://issues.apache.org/jira/browse/HDDS-6728?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Janus Chow resolved HDDS-6728.
------------------------------
    Resolution: Duplicate

> SCM UI not showing correct HA roles
> -----------------------------------
>
>                 Key: HDDS-6728
>                 URL: https://issues.apache.org/jira/browse/HDDS-6728
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: Janus Chow
>            Assignee: Janus Chow
>            Priority: Major
>              Labels: pull-request-available
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

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

Reply via email to