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 2013/04/23 02:21:15 UTC
[jira] [Commented] (KAFKA-870) hadoop-producer KafkaRecordWriter
writes entire input buffer capacity, even when intended payload is smaller
[ https://issues.apache.org/jira/browse/KAFKA-870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13638608#comment-13638608 ]
Neha Narkhede commented on KAFKA-870:
-------------------------------------
Thanks for the patch, David! Do you mind providing a patch for 0.8 branch as well ?
> hadoop-producer KafkaRecordWriter writes entire input buffer capacity, even when intended payload is smaller
> ------------------------------------------------------------------------------------------------------------
>
> Key: KAFKA-870
> URL: https://issues.apache.org/jira/browse/KAFKA-870
> Project: Kafka
> Issue Type: Bug
> Components: contrib
> Affects Versions: 0.7
> Reporter: David Stein
> Labels: patch
> Attachments: kafka-0.7.patch
>
>
> KafkaRecordWriter incorrectly gets the entire buffer capacity of the input BytesWritable.
> If the capacity is larger than the underlying represented byte array, then the message will be padded with garbage bytes at the end.
--
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