FrankYang0529 commented on code in PR #18282:
URL: https://github.com/apache/kafka/pull/18282#discussion_r1897338025


##########
clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java:
##########
@@ -1020,9 +1011,6 @@ private Future<RecordMetadata> doSend(ProducerRecord<K, 
V> record, Callback call
 
             if (result.abortForNewBatch) {
                 int prevPartition = partition;
-                // IMPORTANT NOTE: the following onNewBatch and partition 
calls should not interrupted to allow
-                // the custom partitioner to correctly track its state
-                onNewBatch(record.topic(), cluster, prevPartition);

Review Comment:
   Thanks for the suggestion. Updated it.



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

Reply via email to