rajinisivaram commented on a change in pull request #9434: URL: https://github.com/apache/kafka/pull/9434#discussion_r504954049
########## File path: core/src/main/scala/kafka/server/DelayedFetch.scala ########## @@ -88,6 +90,13 @@ class DelayedFetch(delayMs: Long, try { if (fetchOffset != LogOffsetMetadata.UnknownOffsetMetadata) { val partition = replicaManager.getPartitionOrException(topicPartition) + + // Case H: Return diverging epoch in response to trigger truncation + if (fetchStatus.hasDivergingEpoch) { Review comment: @hachikuji Thanks for the review. Makes sense, I have added a new check at the end instead of this one, not sure if there is a better way to check. ---------------------------------------------------------------- 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