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

Phil Yang commented on HBASE-15485:
-----------------------------------

If we have 5 cells in a row and setBatch(5), we will get BATCH_LIMIT_REACHED 
after scanning the last cell of this row (if it is the last row, we will get 
NO_MORE_VALUES as expected), and we will not reset the filter in v1 patch, so 
when we scanning the next row, the filter will be wrong.

There may be two way to fix this, one is keep the state to BATCH_LIMIT_REACHED 
and judge if it is the last part of this row additionally, the other is change 
this state to MORE_VALUES because this row is end.

> Filter.reset() should not be called between batches
> ---------------------------------------------------
>
>                 Key: HBASE-15485
>                 URL: https://issues.apache.org/jira/browse/HBASE-15485
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 1.2.0, 1.1.3
>            Reporter: Phil Yang
>            Assignee: Phil Yang
>         Attachments: HBASE-15485-v1.patch
>
>
> As discussed in HBASE-15325, now we will resetFilters if partial result not 
> formed, but we should not reset filters when batch limit reached



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to