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:36:27 UTC

[jira] [Updated] (KAFKA-109) CompressionUtils introduces a GZIP header while compressing empty message sets

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

Neha Narkhede updated KAFKA-109:
--------------------------------

    Attachment: KAFKA-109.patch

> CompressionUtils introduces a GZIP header while compressing empty message sets
> ------------------------------------------------------------------------------
>
>                 Key: KAFKA-109
>                 URL: https://issues.apache.org/jira/browse/KAFKA-109
>             Project: Kafka
>          Issue Type: Bug
>    Affects Versions: 0.7
>            Reporter: Neha Narkhede
>         Attachments: KAFKA-109.patch
>
>
> The CompressionUtils helper class takes in a sequence of messages and compresses those, using the appropriate codec. But even if it receives an empty sequence, it still ends up adding a GZIP compression header to the data, efffectively "adding" data to the resulting ByteBuffer. This doesn't match with the behavior for uncompressed empty message sets. CompressionUtils should be fixed by removing this side-effect.

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