Skip to content

Commit 43b0097

Browse files
vineet4008mnpoonia
authored andcommitted
HBASE-28743 Fixes NPE for TableSnapshotScanner by disabling mslab (apache#6110)
Signed-off-by: Duo Zhang <[email protected]> Signed-off-by: Viraj Jasani <[email protected]> Signed-off-by: Pankaj Kumar <[email protected]> (cherry picked from commit c264299) Signed-off-by: apoonia <[email protected]>
1 parent 235072f commit 43b0097

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hbase-server/src/main/java/org/apache/hadoop/hbase/client/TableSnapshotScanner.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import org.apache.hadoop.fs.Path;
2727
import org.apache.hadoop.hbase.HRegionInfo;
2828
import org.apache.hadoop.hbase.PrivateCellUtil;
29+
import org.apache.hadoop.hbase.regionserver.MemStoreLAB;
2930
import org.apache.hadoop.hbase.snapshot.RestoreSnapshotHelper;
3031
import org.apache.hadoop.hbase.snapshot.SnapshotDescriptionUtils;
3132
import org.apache.hadoop.hbase.snapshot.SnapshotManifest;
@@ -122,6 +123,7 @@ public TableSnapshotScanner(Configuration conf, Path rootDir, Path restoreDir,
122123
this.scan = scan;
123124
this.snapshotAlreadyRestored = snapshotAlreadyRestored;
124125
this.fs = rootDir.getFileSystem(conf);
126+
conf.setBoolean(MemStoreLAB.USEMSLAB_KEY, false);
125127

126128
if (snapshotAlreadyRestored) {
127129
this.restoreDir = restoreDir;

0 commit comments

Comments
 (0)