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 D861910422 for ; Fri, 17 Apr 2015 07:37:08 +0000 (UTC) Received: (qmail 8800 invoked by uid 500); 17 Apr 2015 07:36:59 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 8754 invoked by uid 500); 17 Apr 2015 07:36:59 -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 8569 invoked by uid 99); 17 Apr 2015 07:36:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2015 07:36:59 +0000 Date: Fri, 17 Apr 2015 07:36:59 +0000 (UTC) From: "Anoop Sam John (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-13491) Issue in FuzzyRowFilter#getNextForFuzzyRule 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-13491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Anoop Sam John updated HBASE-13491: ----------------------------------- Affects Version/s: 1.0.0 > Issue in FuzzyRowFilter#getNextForFuzzyRule > ------------------------------------------- > > Key: HBASE-13491 > URL: https://issues.apache.org/jira/browse/HBASE-13491 > Project: HBase > Issue Type: Bug > Components: Filters > Affects Versions: 1.0.0 > Reporter: Anoop Sam John > Assignee: Anoop Sam John > Attachments: HBASE-13491.patch > > > {code} > for (int i = 0; i < result.length; i++) { > if (i >= fuzzyKeyMeta.length || fuzzyKeyMeta[i] == 1) { > result[i] = row[offset + i]; > if (!order.isMax(row[i])) { > // this is "non-fixed" position and is not at max value, hence we can increase it > toInc = i; > } > } > {code} > See we take row bytes with out considering the row offset. The test cases are passing as we pass 0 offset row bytes. Change in the test will reveal the bug. > Came across this when I was working on HBASE-11425 -- This message was sent by Atlassian JIRA (v6.3.4#6332)