HBASE-20966 RestoreTool#getTableInfoPath should look for completed snapshot only
This commit is contained in:
parent
7178a98258
commit
cf481d3b51
|
@ -236,7 +236,8 @@ public class RestoreTool {
|
|||
Path tableInfoPath = null;
|
||||
|
||||
// can't build the path directly as the timestamp values are different
|
||||
FileStatus[] snapshots = fs.listStatus(tableSnapShotPath);
|
||||
FileStatus[] snapshots = fs.listStatus(tableSnapShotPath,
|
||||
new SnapshotDescriptionUtils.CompletedSnaphotDirectoriesFilter(fs));
|
||||
for (FileStatus snapshot : snapshots) {
|
||||
tableInfoPath = snapshot.getPath();
|
||||
// SnapshotManifest.DATA_MANIFEST_NAME = "data.manifest";
|
||||
|
|
Loading…
Reference in New Issue