You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Anoop Sam John (JIRA)" <ji...@apache.org> on 2012/12/20 07:41:13 UTC

[jira] [Commented] (HBASE-7362) Scan.setRaw(true) ignores Scan.setTimeRange(minTimestamp,maxTimestamp)

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

Anoop Sam John commented on HBASE-7362:
---------------------------------------

James
       Not able to reproduce this issue. Can you attach a complete Junit test case which reveals the defect?
                
> 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