You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Nick Dimiduk (JIRA)" <ji...@apache.org> on 2013/08/24 01:25:52 UTC

[jira] [Created] (HBASE-9332) OrderedBytes does not decode Strings correctly

Nick Dimiduk created HBASE-9332:
-----------------------------------

             Summary: OrderedBytes does not decode Strings correctly
                 Key: HBASE-9332
                 URL: https://issues.apache.org/jira/browse/HBASE-9332
             Project: HBase
          Issue Type: Bug
    Affects Versions: 0.95.2
            Reporter: Nick Dimiduk
            Assignee: Nick Dimiduk
             Fix For: 0.96.0


While writing a test describing the expected behavior for HBASE-9283, I discovered an error in String decoding. The error occurs when the string being decoded does not start at position 0. The unit tests were originally designed to cover this scenario, but this condition slipped in the transition to PositionedByteBuffer.

Update the tests to cover this scenario and fix the String decoding logic. String appears to be the only codec affected. This error is only in decoding -- encoding produces correct byte[].

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