Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-6383

SCM Web UI doesn’t show correct leader/follower HA info

    XMLWordPrintableJSON

Details

    Description

      Current code for #getScmRatisRoles calls SCMRatisServer.getRatisRoles() which basically determines the leader based on whether the node is local. 

      peer.getAddress().concat(isLocal ?
          ":".concat(RaftProtos.RaftPeerRole.LEADER.toString()) :
          ":".concat(RaftProtos.RaftPeerRole.FOLLOWER.toString())) 

       
      This is correct in case of other callers since only the leader would process requests but not in the JMX case, so every node web ui will have it as the leader

      Attachments

        Issue Links

          Activity

            People

              sshenoy Sadanand Shenoy
              sshenoy Sadanand Shenoy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: