Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.6.0, 3.0.0-beta-1, 2.5.9
-
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
- is caused by
-
HBASE-28401 Introduce a close method for memstore for release active segment
- Resolved
- links to