You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jun Rao (JIRA)" <ji...@apache.org> on 2013/07/03 18:18:20 UTC

[jira] [Created] (KAFKA-959) DefaultEventHandler can send more produce requests than necesary

Jun Rao created KAFKA-959:
-----------------------------

             Summary: 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


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