Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-14030

Add query whether storage has been initialized to DN's JMXBean

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • hdfs
    • None

    Description

      During the short period while the DN is starting and the storage is not yet available we get the following errors:

      ERROR org.apache.hadoop.jmx.JMXJsonServlet: getting attribute VolumeInfo of Hadoop:service=DataNode,name=DataNodeInfo threw an exception
      javax.management.RuntimeMBeanException: java.lang.NullPointerException: Storage not yet initialized
      

      I suggest to add an option to the DataNodeMXBean to query whether the storage has been initialized or not to surpass the exception.

      Attachments

        1. HDFS-14030.001.patch
          3 kB
          Adam Antal

        Activity

          People

            adam.antal Adam Antal
            adam.antal Adam Antal
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: