Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 419F4C7A6 for ; Thu, 23 Aug 2012 21:52:43 +0000 (UTC) Received: (qmail 24759 invoked by uid 500); 23 Aug 2012 21:52:43 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 24720 invoked by uid 500); 23 Aug 2012 21:52:43 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 24712 invoked by uid 99); 23 Aug 2012 21:52:43 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2012 21:52:43 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id BCB802C0A53 for ; Thu, 23 Aug 2012 21:52:42 +0000 (UTC) Date: Fri, 24 Aug 2012 08:52:42 +1100 (NCT) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: <314227326.7712.1345758762773.JavaMail.jiratomcat@arcas> In-Reply-To: <1631529849.1360.1312291289394.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-4155) the problem in hbase thrift client when scan/get rows by timestamp MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-4155?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1344= 0702#comment-13440702 ]=20 stack commented on HBASE-4155: ------------------------------ @Ted Modify the test to match the new behavior I'd say. =20 > 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 c= ommand : > scan 'testcrawl',{TIMESTAMP=3D>1312268202071}=20 > ROW COLUMN+CELL = = =20 > put1.com column=3Dcrawl:data, timestam= p=3D1312268202071, value=3Dput1 = =20 > put1.com column=3Dcrawl:type, timestam= p=3D1312268202071, value=3Dhtml = =20 > put1.com column=3Dlinks:outlinks, time= stamp=3D1312268202071, value=3Dwww.163.com;www.sina.com=20 > 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.f= ollowing is timestamp of return data: > 1312179170000 > 1312268202059 > I look up the source in hbase/src/main/java/org/apache/hadoop/hbase/thri= ft/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 t= imestamp specified. > But in hbase client and avro client =EF=BC=8Cit 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 s= pecified timestamp? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira