Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E8CA3115C9 for ; Fri, 16 May 2014 18:59:50 +0000 (UTC) Received: (qmail 87212 invoked by uid 500); 16 May 2014 11:21:13 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 31289 invoked by uid 500); 16 May 2014 11:08:38 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 89489 invoked by uid 99); 16 May 2014 10:54:29 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2014 10:54:29 +0000 Date: Fri, 16 May 2014 10:54:29 +0000 (UTC) From: "Josh Elser (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-2758) LocalityGroupUtil.encodeColumnFamily() ignores offset parameter 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/ACCUMULO-2758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13999105#comment-13999105 ] Josh Elser commented on ACCUMULO-2758: -------------------------------------- [~gary2086], great! I'll add you as a contributor and assign it to you. > LocalityGroupUtil.encodeColumnFamily() ignores offset parameter > --------------------------------------------------------------- > > Key: ACCUMULO-2758 > URL: https://issues.apache.org/jira/browse/ACCUMULO-2758 > Project: Accumulo > Issue Type: Bug > Affects Versions: 1.4.5, 1.5.1 > Reporter: Bill Havanki > Priority: Minor > Labels: newbie > Fix For: 1.5.2, 1.6.1, 1.7.0 > > Attachments: ACCUMULO-2758-2.patch, ACCUMULO-2758.patch > > > The method {{LocalityGroupUtil.encodeColumnFamily(ByteSequence)}} heeds the current offset and length of the byte sequence, passing them to an private method that does the encoding. However, the private method ignores its offset parameter, and always starts from the beginning of the byte array. > Fortunately, it appears that there are no callers for the public method, and the other caller of the private method always passes an offset of zero. So, the bug is probably not expressed. The method with the bug should probably just be eliminated. -- This message was sent by Atlassian JIRA (v6.2#6252)