cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stu Hood (JIRA)" <>
Subject [jira] Created: (CASSANDRA-602) bytesToHex broken for small byte values
Date Fri, 04 Dec 2009 19:25:20 GMT
bytesToHex broken for small byte values

                 Key: CASSANDRA-602
             Project: Cassandra
          Issue Type: Bug
    Affects Versions: 0.3, 0.4, 0.5
            Reporter: Stu Hood
            Assignee: Stu Hood
            Priority: Blocker
             Fix For: 0.5
         Attachments: fb-bytestohex.diff

FBUtilities.bytesToHex uses Integer.toHexString, which does not zero-pad its output. We then
assert in hexToBytes that each byte string is 2 characters long.

The assertion will occasionally fail, but oftentimes, we simple end up with a different byte
value than we started with.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message