kowshik commented on a change in pull request #10280: URL: https://github.com/apache/kafka/pull/10280#discussion_r643514883
########## File path: core/src/main/scala/kafka/log/Log.scala ########## @@ -1806,37 +1566,37 @@ class Log(@volatile private var _dir: File, endOffset: Long ): Unit = { logStartOffset = startOffset - nextOffsetMetadata = LogOffsetMetadata(endOffset, activeSegment.baseOffset, activeSegment.size) - recoveryPoint = math.min(recoveryPoint, endOffset) - rebuildProducerState(endOffset, producerStateManager) + lock synchronized { + rebuildProducerState(endOffset, producerStateManager) + } Review comment: Sounds good. I'll fix 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