HBase
  1. HBase
  2. HBASE-5532

get NPE during MajorCompactionChecker

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: regionserver
    • Labels:

      Description

      We found error log (NullPointerException) below on our online cluster:

      2012-03-05 00:17:09,592 ERROR org.apache.hadoop.hbase.regionserver.HRegionServer$MajorCompactionChecker: Caught exception
      java.lang.NullPointerException
      at org.apache.hadoop.hbase.regionserver.Store.isMajorCompaction(Store.java:878)
      at org.apache.hadoop.hbase.regionserver.Store.isMajorCompaction(Store.java:857)
      at org.apache.hadoop.hbase.regionserver.HRegion.isMajorCompaction(HRegion.java:3017)
      at org.apache.hadoop.hbase.regionserver.HRegionServer$MajorCompactionChecker.chore(HRegionServer.java:1172)
      at org.apache.hadoop.hbase.Chore.run(Chore.java:66)

      After Check the code we found although it already check whether store files has null reader at the begin of the function(isMajorCompaction), but it still has some possibility the reader is closed before it return(eg mini compaction). So we need to check store file reader before we use it to avoid this NPE

      1. HBASE-5532-v2.patch
        1 kB
        terry zhang
      2. HBASE-5532.patch
        0.7 kB
        terry zhang

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            terry zhang
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development