You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Zheng Hu (JIRA)" <ji...@apache.org> on 2018/05/18 03:11:00 UTC
[jira] [Comment Edited] (HBASE-20565) ColumnRangeFilter combined
with ColumnPaginationFilter can produce incorrect result since 1.4
[ https://issues.apache.org/jira/browse/HBASE-20565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16473738#comment-16473738 ]
Zheng Hu edited comment on HBASE-20565 at 5/18/18 3:10 AM:
-----------------------------------------------------------
It's complex now...if a FilterListWithAND has two sub filters A & B, and B has a row-level global state (such as column offset...), after HBASE-18410, we optimze the forward step to be maximum, so we consider the return code from sub-filters at global level, which means that a cell may not be included the sub-filter A, but we still need to pass the cell to sub-filter B for calculating B' return code (for global return code purpose), finally B's row-level global state messed up ...
was (Author: openinx):
It's complex now...if a FilterListWithAND has two sub filters A & B, and B has a row-level global state (such as column limit...), after HBASE-18410, we optimze the forward step to be maximum, so we consider the return code from sub-filters at global level, which means that a cell may not be included the sub-filter A, but we still need to pass the cell to sub-filter B for calculating B' return code (for global return code purpose), finally B's row-level global state messed up ...
> ColumnRangeFilter combined with ColumnPaginationFilter can produce incorrect result since 1.4
> ---------------------------------------------------------------------------------------------
>
> Key: HBASE-20565
> URL: https://issues.apache.org/jira/browse/HBASE-20565
> Project: HBase
> Issue Type: Bug
> Components: Filters
> Affects Versions: 1.4.4
> Reporter: Jerry He
> Assignee: Zheng Hu
> Priority: Major
> Attachments: debug.diff, debug.log, test-branch-1.4.patch
>
>
> When ColumnPaginationFilter is combined with ColumnRangeFilter, we may see incorrect result.
> Here is a simple example.
> One row with 10 columns c0, c1, c2, .., c9. I have a ColumnRangeFilter for range c2 to c9. Then I have a ColumnPaginationFilter with limit 5 and offset 0. FileterList is FilterList(Operator.MUST_PASS_ALL, ColumnRangeFilter, ColumnPaginationFilter).
> We expect 5 columns being returned. But in HBase 1.4 and after, 4 columns are returned.
> In 1.2.x, the correct 5 columns are returned.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)