philipnee commented on code in PR #14531: URL: https://github.com/apache/kafka/pull/14531#discussion_r1446881807
########## clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java: ########## @@ -1368,7 +1368,7 @@ private int partition(ProducerRecord<K, V> record, byte[] serializedKey, byte[] if (record.partition() != null) return record.partition(); - if (partitioner != null) { + if (partitioner != null && partitioner.partitionsTopic(record.topic())) { Review Comment: there's a slight change to the behavior of the current API, could you modify the documentation? -- 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