hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guido Serra aka Zeph (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-4155) the problem in hbase thrift client when scan/get rows by timestamp
Date Fri, 22 Feb 2013 15:18:18 GMT

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

Guido Serra aka Zeph commented on HBASE-4155:

while, this other works

hbase(main):009:0> scan "AAA_customer", {TIMESTAMP => 1360032970}
ROW                                  COLUMN+CELL                                         
0 row(s) in 1.3960 seconds

hbase(main):010:0> scan "AAA_customer", {TIMESTAMP => 1360292144}
ROW                                  COLUMN+CELL                                         
 1                                   column=mysql:birthday, timestamp=1360292144, 1999-01-01

> the problem in hbase thrift client when scan/get rows by timestamp
> ------------------------------------------------------------------
>                 Key: HBASE-4155
>                 URL: https://issues.apache.org/jira/browse/HBASE-4155
>             Project: HBase
>          Issue Type: Bug
>          Components: Thrift
>    Affects Versions: 0.90.0
>            Reporter: zezhou
>         Attachments: 4155.txt, patch.txt, patch.txt.svn
>   Original Estimate: 1m
>  Remaining Estimate: 1m
> I want to scan rows by specified timestamp. I use following hbase shell command :
> scan 'testcrawl',{TIMESTAMP=>1312268202071} 
> ROW                                         COLUMN+CELL                             
>  put1.com                                   column=crawl:data, timestamp=1312268202071,
>  put1.com                                   column=crawl:type, timestamp=1312268202071,
>  put1.com                                   column=links:outlinks, timestamp=1312268202071,
> As I expected, I can get the rows which timestamp is 1312268202071.
> But when I use thift client to do the same thing ,the return data is the rows which time
before specified timestamp ,  not the same as hbase shell.following is timestamp of return
> 1312179170000
> 1312268202059
> I look up the source in  hbase/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java,
it use following code to set time parameter .
> scan.setTimeRange(Long.MIN_VALUE, timestamp);
> This cause thrift client return rows before specified row ,not the rows timestamp specified.
> But in hbase client and avro client ´╝îit use following code to set time parameter.
> scan.setTimeStamp(timestamp);
> this will return rows timestamp specified.
> Is this a feature or a bug in thrift client ?
> if this is a feature, which method in thrift client can get the rows by specified timestamp?

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

View raw message