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 6BC4A1797E for ; Mon, 6 Oct 2014 22:58:34 +0000 (UTC) Received: (qmail 92919 invoked by uid 500); 6 Oct 2014 22:58:34 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 92833 invoked by uid 500); 6 Oct 2014 22:58:34 -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 92569 invoked by uid 99); 6 Oct 2014 22:58:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Oct 2014 22:58:33 +0000 Date: Mon, 6 Oct 2014 22:58:33 +0000 (UTC) From: "Nick Dimiduk (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-12183) FuzzyRowFilter doesn't support reverse scans 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-12183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14161168#comment-14161168 ] Nick Dimiduk commented on HBASE-12183: -------------------------------------- This is wrong. {noformat} - private static boolean isMax(byte fuzzyKeyByte) { - return (fuzzyKeyByte & 0xFF) == 255; + private static boolean isMax(boolean reverse, byte fuzzyKeyByte) { + return fuzzyKeyByte == (reverse ? Byte.MIN_VALUE : Byte.MAX_VALUE); {noformat} Should be {{(byte) (reverse ? 0 : 0xff)}} Simply zero-ing out existing bytes isn't correct for this either. Will need to increment and truncate. Seems like this zero-ing strategy isn't working for some edge cases as well. > FuzzyRowFilter doesn't support reverse scans > -------------------------------------------- > > Key: HBASE-12183 > URL: https://issues.apache.org/jira/browse/HBASE-12183 > Project: HBase > Issue Type: Bug > Components: Filters > Reporter: Nick Dimiduk > Assignee: Nick Dimiduk > Attachments: 12183.patch > > > Try using the FuzzyRowFilter with a reversed scanner and you'll get an RPC timeout. Looking at the code, this filter ignores the reversed flag and always move forward when calculating the value of getNextCellHint. -- This message was sent by Atlassian JIRA (v6.3.4#6332)