Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-959

DefaultEventHandler can send more produce requests than necesary

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.8.0
    • 0.8.0
    • core
    • None

    Description

      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.

      Attachments

        1. KAFKA-959.v1.patch
          3 kB
          Guozhang Wang

        Activity

          People

            guozhang Guozhang Wang
            junrao Jun Rao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: