public void verifySnapshot(Path snapshotDir, boolean verifyRegions)
    throws CorruptedSnapshotException, IOException {
    SnapshotManifest manifest =
      SnapshotManifest.open(services.getConfiguration(), workingDirFs, snapshotDir, snapshot);
    // verify snapshot info matches
    verifySnapshotDescription(snapshotDir);

    // check that tableinfo is a valid table description
    verifyTableInfo(manifest);

    // check that each region is valid
    verifyRegions(manifest, verifyRegions);
  }
Verify that the snapshot in the directory is a valid snapshot
@param snapshotDir snapshot directory to check
@throws CorruptedSnapshotException if the snapshot is invalid
@throws IOException                if there is an unexpected connection issue to the filesystem
hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/MasterSnapshotVerifier.java