[ https://issues.apache.org/jira/browse/KAFKA-959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jun Rao updated KAFKA-959: -------------------------- Resolution: Fixed Fix Version/s: 0.8 Status: Resolved (was: Patch Available) Thanks for the patch. +1 Committed to 0.8. > DefaultEventHandler can send more produce requests than necesary > ---------------------------------------------------------------- > > Key: KAFKA-959 > URL: https://issues.apache.org/jira/browse/KAFKA-959 > Project: Kafka > Issue Type: Bug > Components: core > Affects Versions: 0.8 > Reporter: Jun Rao > Assignee: Guozhang Wang > Fix For: 0.8 > > Attachments: KAFKA-959.v1.patch > > > In DefaultEventHandler, for a batch of messages, it picks a random partition > per message (when there is no key specified). This means that it can send up > to P produce requests where P is the number of partitions in a topic. A > better way is probably to pick a single random partition for the whole batch > of messages. This will reduce the number of produce requests. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira