[ https://issues.apache.org/jira/browse/HBASE-20675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Peter Somogyi resolved HBASE-20675. ----------------------------------- Resolution: Invalid Assignee: Peter Somogyi The feature works correctly using 2.0.0 client and server. > The scan parameter include_stop_row=true does not work > ------------------------------------------------------ > > Key: HBASE-20675 > URL: https://issues.apache.org/jira/browse/HBASE-20675 > Project: HBase > Issue Type: Bug > Components: Client > Affects Versions: 2.0.0 > Environment: HBase-Client Version: 2.0.0 > HBase Version: 1.2.0-cdh5.7.5 > Reporter: Jermy Li > Assignee: Peter Somogyi > Priority: Major > > we use > [withStopRow|https://hbase.apache.org/2.0/apidocs/org/apache/hadoop/hbase/client/Scan.html#withStopRow-byte:A-boolean-] > API to scan a rowkey range [startrow, stoprow], both inclusive, but the > server can't return the last row including stoprow, however there is no > exception. > For example, the there are the following rows in hbase: > ||rowkey||CF+qualifier+value|| > |1|{value1}| > |2|{value2} > |3|{value3}| > {code:java} > // Do scan like this > Scan scan = new Scan(); > scan.withStartRow(bytes(1), true); > scan.withStopRow(bytes(3), true); > {code} > The result returned only contains the first two rows: “1” and “2”, no “3”. > Thanks. -- This message was sent by Atlassian JIRA (v7.6.3#76005)