CalvinConfluent commented on code in PR #18895:
URL: https://github.com/apache/kafka/pull/18895#discussion_r1955416476


##########
clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java:
##########
@@ -561,7 +561,10 @@ public synchronized void 
maybeUpdateProducerIdAndEpoch(TopicPartition topicParti
      * Set the producer id and epoch atomically.
      */
     private void setProducerIdAndEpoch(ProducerIdAndEpoch producerIdAndEpoch) {
-        log.info("ProducerId set to {} with epoch {}", 
producerIdAndEpoch.producerId, producerIdAndEpoch.epoch);
+        // With TV2, the epoch bump is common and frequent. Only log if it is 
at debug level or the producer ID is changed.
+        if (log.isDebugEnabled() || producerIdAndEpoch.producerId != 
this.producerIdAndEpoch.producerId) {

Review Comment:
   Makes sense, updated.



-- 
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]

Reply via email to