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 2024/11/22 09:42:00 UTC

[jira] [Updated] (HDDS-11742) SCM leadership metric set to null even if the LEADER is defined

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

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

> SCM leadership metric set to null even if the LEADER is defined
> ---------------------------------------------------------------
>
>                 Key: HDDS-11742
>                 URL: https://issues.apache.org/jira/browse/HDDS-11742
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: SCM
>    Affects Versions: 2.0.0
>            Reporter: Vyacheslav Tutrinov
>            Assignee: Vyacheslav Tutrinov
>            Priority: Major
>              Labels: pull-request-available
>
> SCM leadership metric was introduced in HDDS-8363.
> On starting of the SCM server the Raft server instance initialized earlier than the SCM HTTP server initializer set the leader to null:
> {code:java}
> // At this point leader is not known
> scmHAMetricsUpdate(null);
> {code}
> Log entries of the SCM server instance at start-up time:
> {code}
> 2024-11-18 11:09:29,981 [ae525b25-2774-4f91-9bbc-83884c1f472d@group-F219F5C50F0F-FollowerState] INFO server.RaftServer$Division: ae525b25-2774-4f91-9bbc-83884c1f472d@group-F219F5C50F0F: changes role from  FOLLOWER to CANDIDATE at term 4 for changeToCandidate
> ...
> 2024-11-18 11:09:30,412 [ae525b25-2774-4f91-9bbc-83884c1f472d@group-F219F5C50F0F-LeaderElection1] INFO server.RaftServer$Division: ae525b25-2774-4f91-9bbc-83884c1f472d@group-F219F5C50F0F: changes role from CANDIDATE to LEADER at term 5 for changeToLeader
> ...
> 2024-11-18 11:09:41,593 [main] INFO http.BaseHttpServer: HTTP server of scm listening at http://0.0.0.0:9876
> // At this point the leadership metric will be reset to null!
> {code}
>  
> SCM HTTP server initializer shouldn't reset the metric to null if the latter was initialized already with the raft server initializer



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org