public static long lastContainedLogTimestamp(RawSnapshotReader reader) {
        try (RecordsSnapshotReader<ByteBuffer> recordsSnapshotReader =
             RecordsSnapshotReader.of(
                 reader,
                 IdentitySerde.INSTANCE,
                 new BufferSupplier.GrowableBufferSupplier(),
                 KafkaRaftClient.MAX_BATCH_SIZE_BYTES,
                 true
             )
        ) {
            return recordsSnapshotReader.lastContainedLogTimestamp();
        }
    }
Mark a snapshot for deletion by renaming with the deleted suffix.

@return the path of the snapshot marked for deletion (i.e. with .delete suffix)
raft/src/main/java/org/apache/kafka/snapshot/Snapshots.java