[jira] [Created] (HBASE-21618) Scan with the same startRow(inclusive=true) and stopRow(inclusive=false) returns one result

2018-12-19 Thread Jermy Li (JIRA)
Jermy Li created HBASE-21618:


 Summary: Scan with the same startRow(inclusive=true) and 
stopRow(inclusive=false) returns one result
 Key: HBASE-21618
 URL: https://issues.apache.org/jira/browse/HBASE-21618
 Project: HBase
  Issue Type: Bug
  Components: Client
Affects Versions: 2.0.2
 Environment: hbase server 2.0.2
hbase client 2.0.0
Reporter: Jermy Li


I expect the following code to return none result, but still return a row:
{code:java}
byte[] rowkey = "some key existed";
Scan scan = new Scan();
scan.withStartRow(rowkey, true);
scan.withStopRow(rowkey, false);
htable.getScanner(scan);
{code}





--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (HBASE-20675) The scan parameter include_stop_row=true does not work

2018-06-02 Thread Jermy Li (JIRA)
Jermy Li created HBASE-20675:


 Summary: 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


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)