Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-20670

NPE in HMaster#isInMaintenanceMode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.2
    • 3.0.0-alpha-1, 2.1.0, 2.0.1, 1.4.5
    • None
    • None
    • Reviewed

    Description

      Problem accessing /master-status. Reason: INTERNAL_SERVER_ERROR
      Caused by: java.lang.NullPointerException
      at org.apache.hadoop.hbase.master.HMaster.isInMaintenanceMode(HMaster.java:2559)
      

      The ZK trackers, including the maintenance mode tracker, are initialized only after we try to bring up the filesystem. If HDFS is in safe mode and the master is waiting on that, when an access to the master status page comes in we trip over this problem. There might be other issues after we fix this, but NPE Is always a bug, so let's address it. One option is to connect the ZK based components with ZK before attempting to bring up the filesystem. Let me try that first. If that doesn't work we could at least throw an IOE.

      Attachments

        1. HBASE-20670-branch-1.patch
          5 kB
          Andrew Kyle Purtell
        2. HBASE-20670.patch
          4 kB
          Andrew Kyle Purtell

        Activity

          People

            apurtell Andrew Kyle Purtell
            apurtell Andrew Kyle Purtell
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: