cmccabe commented on a change in pull request #11689:
URL: https://github.com/apache/kafka/pull/11689#discussion_r788921625
##########
File path:
clients/src/main/java/org/apache/kafka/clients/producer/internals/ProducerInterceptors.java
##########
@@ -123,6 +122,10 @@ public void onSendError(ProducerRecord<K, V> record,
TopicPartition interceptTop
}
}
+ public static <K, V> TopicPartition createTopicPartition(ProducerRecord<K,
V> record) {
Review comment:
This is not a very good name since "creating a partition" usually means
calling `createPartitions`. How about `extractTopicPartition` ?
--
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]