Skip to content

Commit

Permalink
HBASE-28743 Fixes NPE for TableSnapshotScanner by disabling mslab
Browse files Browse the repository at this point in the history
  • Loading branch information
vineet4008 committed Jul 19, 2024
1 parent b7d11a7 commit 9208150
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.hbase.PrivateCellUtil;
import org.apache.hadoop.hbase.regionserver.MemStoreLAB;
import org.apache.hadoop.hbase.snapshot.RestoreSnapshotHelper;
import org.apache.hadoop.hbase.snapshot.SnapshotDescriptionUtils;
import org.apache.hadoop.hbase.snapshot.SnapshotManifest;
Expand Down Expand Up @@ -122,6 +123,7 @@ public TableSnapshotScanner(Configuration conf, Path rootDir, Path restoreDir,
this.scan = scan;
this.snapshotAlreadyRestored = snapshotAlreadyRestored;
this.fs = rootDir.getFileSystem(conf);
conf.setBoolean(MemStoreLAB.USEMSLAB_KEY, false);

if (snapshotAlreadyRestored) {
this.restoreDir = restoreDir;
Expand Down

0 comments on commit 9208150

Please sign in to comment.