dajac commented on a change in pull request #9689: URL: https://github.com/apache/kafka/pull/9689#discussion_r540030883
########## File path: core/src/main/scala/kafka/server/AbstractFetcherThread.scala ########## @@ -160,7 +161,9 @@ abstract class AbstractFetcherThread(name: String, if (state.isTruncating) { latestEpoch(tp) match { case Some(epoch) if isOffsetForLeaderEpochSupported => - partitionsWithEpochs += tp -> new EpochData(Optional.of(state.currentLeaderEpoch), epoch) + partitionsWithEpochs += tp -> new EpochData() Review comment: I have updated tests to catch this. ---------------------------------------------------------------- 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