public static void verifySnapshot(final Configuration conf, final FileSystem fs,
    final Path snapshotDir, final SnapshotDescription snapshotDesc) throws IOException {
    SnapshotManifest manifest = SnapshotManifest.open(conf, fs, snapshotDir, snapshotDesc);
    verifySnapshot(conf, fs, manifest);
  }
Verify the validity of the snapshot
@param conf         The current {@link Configuration} instance.
@param fs           {@link FileSystem}
@param snapshotDir  {@link Path} to the Snapshot directory of the snapshot to verify
@param snapshotDesc the {@link SnapshotDescription} of the snapshot to verify
@throws CorruptedSnapshotException if the snapshot is corrupted
@throws IOException                if an error occurred while scanning the directory
hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/SnapshotReferenceUtil.java