[
https://issues.apache.org/jira/browse/KAFKA-959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Guozhang Wang updated KAFKA-959:
--------------------------------
Assignee: Guozhang Wang
> 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
>
> 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