cmccabe commented on a change in pull request #11054: URL: https://github.com/apache/kafka/pull/11054#discussion_r670004898
########## File path: raft/src/main/java/org/apache/kafka/raft/ReplicatedLog.java ########## @@ -280,11 +280,19 @@ default long truncateToEndOffset(OffsetAndEpoch endOffset) { Optional<RawSnapshotReader> readSnapshot(OffsetAndEpoch snapshotId); /** - * Returns the latest snapshot id if one exists. + * Returns the latest readable snapshot if one exists. * - * @return an Optional snapshot id of the latest snashot if one exists, otherwise returns an - * empty Optional + * @return an Optional with the latest readable snapshot, if one exists, otherwise + * returns an empty Optional */ + Optional<RawSnapshotReader> latestSnapshot(); Review comment: would "openLatestSnapshot" be a better name, given that the snapshot reader will need to be closed later? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org