rajinisivaram commented on a change in pull request #9382:
URL: https://github.com/apache/kafka/pull/9382#discussion_r511047757



##########
File path: core/src/main/scala/kafka/server/AbstractFetcherThread.scala
##########
@@ -341,11 +352,18 @@ abstract class AbstractFetcherThread(name: String,
                       // ReplicaDirAlterThread may have removed topicPartition 
from the partitionStates after processing the partition data
                       if (validBytes > 0 && 
partitionStates.contains(topicPartition)) {
                         // Update partitionStates only if there is no 
exception during processPartitionData
-                        val newFetchState = PartitionFetchState(nextOffset, 
Some(lag), currentFetchState.currentLeaderEpoch, state = Fetching)
+                        val newFetchState = PartitionFetchState(nextOffset, 
Some(lag),
+                          currentFetchState.currentLeaderEpoch, state = 
Fetching,
+                          Some(currentFetchState.currentLeaderEpoch))

Review comment:
       Oops, fixed.




----------------------------------------------------------------
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


Reply via email to