showuon commented on a change in pull request #11788: URL: https://github.com/apache/kafka/pull/11788#discussion_r809037746
########## File path: clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java ########## @@ -514,7 +514,7 @@ private TransactionManager configureTransactionState(ProducerConfig config, LogContext logContext) { TransactionManager transactionManager = null; - if (config.idempotenceEnabled()) { + if (config.getBoolean(ProducerConfig.ENABLE_IDEMPOTENCE_CONFIG)) { Review comment: refactor: the `idempotenceEnabled()` method is only to get the config of `ENABLE_IDEMPOTENCE_CONFIG` now. -- 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