Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A09AC1080A for ; Fri, 23 Aug 2013 23:35:52 +0000 (UTC) Received: (qmail 53893 invoked by uid 500); 23 Aug 2013 23:35:52 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 53855 invoked by uid 500); 23 Aug 2013 23:35:52 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 53736 invoked by uid 99); 23 Aug 2013 23:35:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Aug 2013 23:35:52 +0000 Date: Fri, 23 Aug 2013 23:35:52 +0000 (UTC) From: "Nick Dimiduk (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-9332) OrderedBytes does not decode Strings correctly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-9332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nick Dimiduk updated HBASE-9332: -------------------------------- Status: Patch Available (was: Open) > 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.98.0, 0.96.0 > > Attachments: 0001-HBASE-9332-OrderedBytes-error-decoding-strings.patch > > > 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