kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Arthur (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KAFKA-680) ApiUtils#writeShortString uses String length instead of byte length
Date Thu, 03 Jan 2013 17:48:15 GMT
David Arthur created KAFKA-680:
----------------------------------

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


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

Mime
View raw message