You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Neha Narkhede (JIRA)" <ji...@apache.org> on 2011/08/18 12:50:27 UTC

[jira] [Updated] (KAFKA-110) Bug in the collate logic of the DefaultEventHandler dispatches empty list of messages using the producer

     [ https://issues.apache.org/jira/browse/KAFKA-110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Neha Narkhede updated KAFKA-110:
--------------------------------

    Attachment: KAFKA-110.patch

This patch corrects the behavior of the collate API to avoid adding empty sequences of data to the list of events to be sent using the producer.

Also, it modifies the ProducerSendThread so that it never dispatches an empty list of events to the event handler.

> Bug in the collate logic of the DefaultEventHandler dispatches empty list of messages using the producer
> --------------------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-110
>                 URL: https://issues.apache.org/jira/browse/KAFKA-110
>             Project: Kafka
>          Issue Type: Bug
>    Affects Versions: 0.7
>            Reporter: Neha Narkhede
>         Attachments: KAFKA-110.patch
>
>
> The collate logic in the DefaultEventHandler is designed to batch together requests for a single topic and partition in order to send it to the server in a single request. In this collate logic, the use of the partition API might give back an empty sequence of data for a particular topic,partition pair. It is useless to add it to the list of data to be sent, and it should avoid making network requests.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira