hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Taylor (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-7362) Scan.setRaw(true) ignores Scan.setTimeRange(minTimestamp,maxTimestamp)
Date Sat, 15 Dec 2012 02:02:12 GMT
James Taylor created HBASE-7362:
-----------------------------------

             Summary: Scan.setRaw(true) ignores Scan.setTimeRange(minTimestamp,maxTimestamp)
                 Key: HBASE-7362
                 URL: https://issues.apache.org/jira/browse/HBASE-7362
             Project: HBase
          Issue Type: Bug
            Reporter: James Taylor
            Priority: Minor


The following doesn't work as expected:
Scan scan = new Scan();
scan.setRaw(true);
scan.setTimeRange(10,20);
scan.setStartRow(new byte[] {1});
scan.setStopRow(new byte[] {2});
RegionScanner scanner = region.getScanner(scan);
List<KeyValue> results = new ArrayList<KeyValue>();
scanner.next(results);
// This assert will fail as the raw scan ignores the time range
assertTrue(results.isEmpty() || results.get(0).getTimestamp() >= 10);


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