nileshkumar3 opened a new pull request, #21665: URL: https://github.com/apache/kafka/pull/21665
This PR reduces lock hold time in RecordAccumulator.drainBatchesForOneNode by moving transactional producer state updates outside the synchronized deque block after the batch is removed. The change keeps only deque-dependent checks and pollFirst() under the lock, which helps reduce producer-side contention without changing the existing drain logic. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
