You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "mimaison (via GitHub)" <gi...@apache.org> on 2024/11/03 16:31:49 UTC
Re: [PR] KAFKA-17632: Fix RoundRobinPartitioner for even partition counts [kafka]
mimaison commented on code in PR #17620:
URL: https://github.com/apache/kafka/pull/17620#discussion_r1827018579
##########
clients/src/main/java/org/apache/kafka/clients/producer/RoundRobinPartitioner.java:
##########
@@ -68,6 +75,13 @@ private int nextValue(String topic) {
return counter.getAndIncrement();
}
+ @SuppressWarnings("deprecation")
Review Comment:
I don't know if we really need to un-deprecate it. However it would be good to understand why and document that `partition()` can get called twice for the same batch. That is a confusing behavior that users surely don't expect.
--
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-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org