rajinisivaram commented on a change in pull request #9382: URL: https://github.com/apache/kafka/pull/9382#discussion_r504727381
########## File path: core/src/main/scala/kafka/server/AbstractFetcherThread.scala ########## @@ -408,9 +428,12 @@ abstract class AbstractFetcherThread(name: String, def markPartitionsForTruncation(topicPartition: TopicPartition, truncationOffset: Long): Unit = { partitionMapLock.lockInterruptibly() try { + // It is safe to reset `lastFetchedEpoch` here since we don't expect diverging offsets Review comment: Updated. The method is still there for older versions, but it is now disabled with IBP 2.7. ---------------------------------------------------------------- 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