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

CompactionTool fails with NPE when mslab is enabled

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      While using the CompactionTool, NPE is observed.

      Command:

      hbase org.apache.hadoop.hbase.regionserver.CompactionTool  -major <table-path>

      Exception Details:

      Exception in thread "main" java.lang.NullPointerException
              at org.apache.hadoop.hbase.regionserver.MemStoreLABImpl.recycleChunks(MemStoreLABImpl.java:296)
              at org.apache.hadoop.hbase.regionserver.MemStoreLABImpl.lambda$new$0(MemStoreLABImpl.java:109)
              at org.apache.hadoop.hbase.nio.RefCnt.deallocate(RefCnt.java:95)
              at org.apache.hbase.thirdparty.io.netty.util.AbstractReferenceCounted.handleRelease(AbstractReferenceCounted.java:86)
              at org.apache.hbase.thirdparty.io.netty.util.AbstractReferenceCounted.release(AbstractReferenceCounted.java:76)
              at org.apache.hadoop.hbase.nio.RefCnt.release(RefCnt.java:84)
              at org.apache.hadoop.hbase.regionserver.MemStoreLABImpl.close(MemStoreLABImpl.java:269)
              at org.apache.hadoop.hbase.regionserver.Segment.close(Segment.java:143)
              at org.apache.hadoop.hbase.regionserver.AbstractMemStore.close(AbstractMemStore.java:381)
              at org.apache.hadoop.hbase.regionserver.HStore.closeWithoutLock(HStore.java:723)
              at org.apache.hadoop.hbase.regionserver.HStore.close(HStore.java:795)
              at org.apache.hadoop.hbase.regionserver.CompactionTool$CompactionWorker.compactStoreFiles(CompactionTool.java:171)
              at org.apache.hadoop.hbase.regionserver.CompactionTool$CompactionWorker.compactRegion(CompactionTool.java:137)
              at org.apache.hadoop.hbase.regionserver.CompactionTool$CompactionWorker.compactTable(CompactionTool.java:129)
              at org.apache.hadoop.hbase.regionserver.CompactionTool$CompactionWorker.compact(CompactionTool.java:118)
              at org.apache.hadoop.hbase.regionserver.CompactionTool.doClient(CompactionTool.java:374)
              at org.apache.hadoop.hbase.regionserver.CompactionTool.run(CompactionTool.java:424)
              at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
              at org.apache.hadoop.hbase.regionserver.CompactionTool.main(CompactionTool.java:460)

      Fix Suggestions:
      Initialize the ChunkCreator in CompactionTool when hbase.hregion.memstore.mslab.enabled is enabled.

      Attachments

        Issue Links

          Activity

            People

              vineet.4008 Vineet Kumar Maheshwari
              vineet.4008 Vineet Kumar Maheshwari
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: