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 304EA10CC9 for ; Wed, 29 Jan 2014 16:52:12 +0000 (UTC) Received: (qmail 42213 invoked by uid 500); 29 Jan 2014 16:52:11 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 42181 invoked by uid 500); 29 Jan 2014 16:52:10 -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 42169 invoked by uid 99); 29 Jan 2014 16:52:10 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jan 2014 16:52:10 +0000 Date: Wed, 29 Jan 2014 16:52:10 +0000 (UTC) From: "Mike Drob (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-2083) RegExFilter Erroneously Reconstructs RowId Containing Null Character 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-2083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13885517#comment-13885517 ] Mike Drob commented on ACCUMULO-2083: ------------------------------------- [~vines], can you commit your code as a unit test? > RegExFilter Erroneously Reconstructs RowId Containing Null Character > -------------------------------------------------------------------- > > Key: ACCUMULO-2083 > URL: https://issues.apache.org/jira/browse/ACCUMULO-2083 > Project: Accumulo > Issue Type: Bug > Affects Versions: 1.5.0 > Reporter: Laura Schanno > Assignee: John Vines > Priority: Minor > Attachments: RegexWithNullByte.java > > > I applied a core.iterators.user.RegExFilter iterator to a BatchScanner iterating over Key,Value pairs where the row id of the Keys are formatted as "\0\". RegExFilter reconstructed the row id as "", dropping the sink half. This appears to be due to the usage of the String(byte bytes[], int offset, int length, Charset charset) constructor to reset the values of the Matcher objects in the both of the matches() functions. The String constructor only reconstructs a String up to the "\0" character. -- This message was sent by Atlassian JIRA (v6.1.5#6160)