public static SnapshotDescription readSnapshotInfo(FileSystem fs, Path snapshotDir)
    throws CorruptedSnapshotException {
    Path snapshotInfo = new Path(snapshotDir, SNAPSHOTINFO_FILE);
    try (FSDataInputStream in = fs.open(snapshotInfo)) {
      return SnapshotDescription.parseFrom(in);
    } catch (IOException e) {
      throw new CorruptedSnapshotException("Couldn't read snapshot info from:" + snapshotInfo, e);
    }
  }
Read in the {@link SnapshotDescription} stored for the snapshot in the passed directory
@param fs          filesystem where the snapshot was taken
@param snapshotDir directory where the snapshot was stored
@return the stored snapshot description
@throws CorruptedSnapshotException if the snapshot cannot be read
hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/SnapshotDescriptionUtils.java