Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@minotaur.apache.org Received: (qmail 24016 invoked from network); 2 Sep 2009 20:55:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Sep 2009 20:55:55 -0000 Received: (qmail 59898 invoked by uid 500); 2 Sep 2009 20:55:54 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 59864 invoked by uid 500); 2 Sep 2009 20:55:54 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 59852 invoked by uid 99); 2 Sep 2009 20:55:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Sep 2009 20:55:54 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Sep 2009 20:55:53 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BFD84234C004 for ; Wed, 2 Sep 2009 13:55:32 -0700 (PDT) Message-ID: <1998131163.1251924932744.JavaMail.jira@brutus> Date: Wed, 2 Sep 2009 13:55:32 -0700 (PDT) From: "Jonathan Gray (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Updated: (HBASE-1790) filters are not working correctly In-Reply-To: <218991043.1251098699278.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-1790?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Gray updated HBASE-1790: --------------------------------- Attachment: HBASE-1790-v5.patch Completely changes the KeyFilter stuff from apurtell patch over in HBASE-1807 but retains all the functionality besides family checking (after clarifying with user on list that he was in fact not looking for that). Adds more tests. New tests are in TestFilter. There are lots of them, though could use more FilterList tests. Adds a couple new classes to filters... BinaryComparator which is a WritableBAComparable implementing wrapper of Bytes.compareTo(). CompareFilter is a superclass for RowFilter, QualifierFilter, and ValueFilter classes. Existing ValueFilter has become SingleColumnValueFilter which is what it actually does. I actually removed the filterRowIfColumnMissing stuff and instead created a wrapping filter SkipFilter. You wrap a KV checking filter with it, and if any KVs in the row fail, the entire row is filtered out. Couple changes in HRegion code to actually fix filters. > filters are not working correctly > --------------------------------- > > Key: HBASE-1790 > URL: https://issues.apache.org/jira/browse/HBASE-1790 > Project: Hadoop HBase > Issue Type: Bug > Components: filters > Affects Versions: 0.20.0, 0.21.0 > Reporter: Matus Zamborsky > Assignee: Jonathan Gray > Fix For: 0.20.0 > > Attachments: 1790-3.patch, HBASE-1790-v2.patch, HBASE-1790-v4.patch, HBASE-1790-v5.patch, hbase-1790.patch, testfilter.patch > > > Filters used in Scanning the table are not working correctly. For example a table with three rows: > 1. rowkey = adminbackslash-nb0, desc:temp = "temp" > 2. rowkey = adminbackslash-nb1, desc:temp = "temp" > 3. rowkey = adminkleptoman, desc:temp = "temp" > If I scan all rows in the table without filter I get all the rows as expected. But applying a simple prefixfilter with parameter "adminbackslash" will return only first row. I searched it down to HRegion::nextInternal method, which will not output one passed row before denied row(by filter). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.