jsancio commented on a change in pull request #9816: URL: https://github.com/apache/kafka/pull/9816#discussion_r557586344
########## File path: core/src/main/scala/kafka/raft/KafkaMetadataLog.scala ########## @@ -113,6 +145,22 @@ class KafkaMetadataLog( log.truncateTo(offset) } + override def truncateFullyToLatestSnapshot(): Boolean = { + // Truncate the log fully if the latest snapshot is greater than the log end offset + var truncated = false Review comment: Done. Used Scala's `match`. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org