HBASE-20966 RestoreTool#getTableInfoPath should look for completed snapshot only

This commit is contained in:
tedyu 2018-07-27 11:12:26 -07:00
parent 7178a98258
commit cf481d3b51
1 changed files with 2 additions and 1 deletions

View File

@ -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";