You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/05/11 04:16:00 UTC

[jira] [Updated] (HDDS-6728) SCM UI not showing correct HA roles

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

ASF GitHub Bot updated HDDS-6728:
---------------------------------
    Labels: pull-request-available  (was: )

> 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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org