Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Kafka >> mail # dev >> [jira] [Updated] (KAFKA-680) ApiUtils#writeShortString uses String length instead of byte length


Copy link to this message
-
[jira] [Updated] (KAFKA-680) ApiUtils#writeShortString uses String length instead of byte length

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

David Arthur updated KAFKA-680:
-------------------------------

    Attachment: KAFKA-680v1.patch

Attaching v1 of patch, included some unit tests
                
> ApiUtils#writeShortString uses String length instead of byte length
> -------------------------------------------------------------------
>
>                 Key: KAFKA-680
>                 URL: https://issues.apache.org/jira/browse/KAFKA-680
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients, core
>            Reporter: David Arthur
>            Assignee: David Arthur
>         Attachments: KAFKA-680.patch, KAFKA-680v1.patch
>
>
> Instead of using the length of the encoded bytes, writeShortString is using String#length. If non single-byte characters are encoded, then things go wrong then decoding the string with readShortString

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

 
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB