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

SCM throws NPE during JMX call

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0
    • Component/s: SCM

      Description

      Whenever there is a JMX call to SCM, there is an NPE in SCM log file.

      JMX call invokesĀ StorageContainerManager#getScmRatisRoles

        @Override
        public String getScmRatisRoles() throws IOException {
          return HddsUtils.format(getScmHAManager().getRatisServer().getRatisRoles());
        }
      

      When in NON-HA mode the below call is returning null, causing NPE during JMX call.

      SCMHAManager#getRatisServer()

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nilotpalnandi Nilotpal Nandi
                Reporter:
                nanda Nandakumar
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: