[ https://issues.apache.org/jira/browse/HBASE-28742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Duo Zhang resolved HBASE-28742. ------------------------------- Fix Version/s: 2.7.0 3.0.0-beta-2 2.6.1 2.5.11 Hadoop Flags: Reviewed Resolution: Fixed Pushed to all active branches. Thanks [~vineet.4008] for contributing and [~PankajKumar] for reviewing! > CompactionTool fails with NPE when mslab is enabled > --------------------------------------------------- > > Key: HBASE-28742 > URL: https://issues.apache.org/jira/browse/HBASE-28742 > Project: HBase > Issue Type: Bug > Components: Compaction > Affects Versions: 2.6.0, 3.0.0-beta-1, 2.5.9 > Reporter: Vineet Kumar Maheshwari > Assignee: Vineet Kumar Maheshwari > Priority: Major > Labels: pull-request-available > Fix For: 2.7.0, 3.0.0-beta-2, 2.6.1, 2.5.11 > > > While using the CompactionTool, NPE is observed. > *Command:* > {code:java} > hbase org.apache.hadoop.hbase.regionserver.CompactionTool -major > <table-path>{code} > *Exception Details:* > {code:java} > 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){code} > *Fix Suggestions:* > Initialize the ChunkCreator in CompactionTool when > hbase.hregion.memstore.mslab.enabled is enabled. -- This message was sent by Atlassian Jira (v8.20.10#820010)