hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anoop Sam John (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-6132) ColumnCountGetFilter & PageFilter not working with FilterList
Date Tue, 05 Feb 2013 17:44:11 GMT

    [ https://issues.apache.org/jira/browse/HBASE-6132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13571499#comment-13571499
] 

Anoop Sam John commented on HBASE-6132:
---------------------------------------

In Trunk, now this test case passes. This is because of the change done by HBASE-6429 .
Now filterRow() will be called iff hasFilter() returns true.
ColumnCountGetFilter is not implementing hasFilter().

In 94 and older versions filterRow() will be called any way.  But still the change in FilterList
might be needed I guess.
                
> ColumnCountGetFilter & PageFilter not working with FilterList
> -------------------------------------------------------------
>
>                 Key: HBASE-6132
>                 URL: https://issues.apache.org/jira/browse/HBASE-6132
>             Project: HBase
>          Issue Type: Bug
>          Components: Filters
>    Affects Versions: 0.92.0, 0.92.1, 0.94.0
>         Environment: Cent OS 5.5 distributed hbase cluster. Hadoop 1.0.0, zookeeper 3.4.3
>            Reporter: Benjamin Kim
>            Assignee: Anoop Sam John
>         Attachments: TestColumnCountGetFilter.java
>
>
> Thanks to Anoop and Ramkrishna, here's what we found with FilterList
> If I use FilterList to include ColumnCountGetFilter among other filters, the returning
Result has no keyvalues.
> This problem seems to occur when specified column count is less then actual number of
existing columns.
> Also same problem arises with PageFilter
> Following is the code of the problem:
> {code}
> Configuration conf = HBaseConfiguration.create();
> HTable table = new HTable(conf, "test");
> Get get = new Get(Bytes.toBytes("test00001"));
> FilterList filterList = new FilterList();
> filterList.addFilter(new ColumnCountGetFilter(100));           
> get.setFilter(filterList);
> Result r = table.get(get);
> System.out.println(r.size()); // prints zero
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message