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

NullPointerException in HMaster#normalizeRegions() due to missing TableDescriptor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.0
    • 1.2.0, 1.3.0, 2.0.0
    • master
    • None
    • Reviewed

    Description

      During system test on Windows, we observed the following in master log:

      2015-11-23 11:31:38,853 ERROR org.apache.hadoop.hbase.master.normalizer.RegionNormalizerChore: Caught error^M
      java.lang.NullPointerException^M
        at org.apache.hadoop.hbase.master.HMaster.normalizeRegions(HMaster.java:1396)^M
        at org.apache.hadoop.hbase.master.normalizer.RegionNormalizerChore.chore(RegionNormalizerChore.java:49)^M
        at org.apache.hadoop.hbase.ScheduledChore.run(ScheduledChore.java:185)^M
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)^M
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)^M
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)^M
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)^M
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)^M
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)^M
        at java.lang.Thread.run(Thread.java:745)^M
      

      The NullPointerException came from the second line below:

            for(TableName table : allEnabledTables) {
              if (table.isSystemTable() || !getTableDescriptors().get(table).isNormalizationEnabled()) {
      

      It seems TableDescriptor for some table was absent.

      normalizeRegions() should deal with such scenario without producing NPE.

      Attachments

        1. 14885-branch-1.txt
          1.0 kB
          Ted Yu
        2. 14885-v1.txt
          2 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: