Skip to content

Commit

Permalink
HBASE-28743 Fixes NPE for TableSnapshotScanner by disabling mslab (#6110
Browse files Browse the repository at this point in the history
)

Signed-off-by: Duo Zhang <[email protected]>
Signed-off-by: Viraj Jasani <[email protected]>
Signed-off-by: Pankaj Kumar <[email protected]>
  • Loading branch information
vineet4008 authored Jul 23, 2024
1 parent 317d3aa commit c264299
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.hbase.HRegionInfo;
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 c264299

Please sign in to comment.