public boolean hasSnapshot(long epoch) {
        return snapshots.containsKey(epoch);
    }
Returns a sorted list of snapshot epochs.
server-common/src/main/java/org/apache/kafka/timeline/SnapshotRegistry.java