jolshan commented on code in PR #13391: URL: https://github.com/apache/kafka/pull/13391#discussion_r1161874495
########## core/src/main/scala/kafka/log/UnifiedLog.scala: ########## @@ -572,6 +572,11 @@ class UnifiedLog(@volatile var logStartOffset: Long, result } + def hasOngoingTransaction(producerId: Long): Boolean = lock synchronized { + val entry = producerStateManager.activeProducers.get(producerId) + entry != null && entry.currentTxnFirstOffset.isPresent Review Comment: This is a Java map, so that doesn't work. I can convert to scala, but not sure that is much better. -- 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