Hangleton commented on code in PR #13696: URL: https://github.com/apache/kafka/pull/13696#discussion_r1205272856
########## core/src/main/scala/kafka/server/AbstractFetcherThread.scala: ########## @@ -460,8 +460,16 @@ abstract class AbstractFetcherThread(name: String, partitionMapLock.lockInterruptibly() try { Option(partitionStates.stateValue(topicPartition)).foreach { state => - val newState = PartitionFetchState(state.topicId, math.min(truncationOffset, state.fetchOffset), - state.lag, state.currentLeaderEpoch, state.delay, state = Truncating, + var lag = state.lag Review Comment: Isn't the lag recalculated on the next fetch iteration ([here](https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/server/AbstractFetcherThread.scala#L362))? -- 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. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org