Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 73377D0F6 for ; Thu, 2 Aug 2012 16:39:43 +0000 (UTC) Received: (qmail 84993 invoked by uid 500); 2 Aug 2012 16:39:41 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 84933 invoked by uid 500); 2 Aug 2012 16:39:41 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 84925 invoked by uid 99); 2 Aug 2012 16:39:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2012 16:39:41 +0000 X-ASF-Spam-Status: No, hits=-2.8 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of wtan@us.ibm.com designates 32.97.182.142 as permitted sender) Received: from [32.97.182.142] (HELO e2.ny.us.ibm.com) (32.97.182.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2012 16:39:32 +0000 Received: from /spool/local by e2.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 2 Aug 2012 12:39:09 -0400 Received: from d01dlp02.pok.ibm.com (9.56.250.167) by e2.ny.us.ibm.com (192.168.1.102) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 2 Aug 2012 12:37:46 -0400 Received: from d01relay03.pok.ibm.com (d01relay03.pok.ibm.com [9.56.227.235]) by d01dlp02.pok.ibm.com (Postfix) with ESMTP id E147E6E8054 for ; Thu, 2 Aug 2012 12:37:40 -0400 (EDT) Received: from d01av05.pok.ibm.com (d01av05.pok.ibm.com [9.56.224.195]) by d01relay03.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q72Gbd2t334796 for ; Thu, 2 Aug 2012 12:37:39 -0400 Received: from d01av05.pok.ibm.com (loopback [127.0.0.1]) by d01av05.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q72GbdH1005381 for ; Thu, 2 Aug 2012 12:37:39 -0400 Received: from d01ml605.pok.ibm.com (d01ml605.pok.ibm.com [9.63.8.148]) by d01av05.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q72GbdFc005378 for ; Thu, 2 Aug 2012 12:37:39 -0400 In-Reply-To: <004601cd706a$807c5a90$81750fb0$@vasudevan@huawei.com> References: <1343838825.57351.YahooMailNeo@web121702.mail.ne1.yahoo.com> , <0CE69E9126D0344088798A3B7F7F80863A4C3051@szxeml531-mbs.china.huawei.com> <004601cd706a$807c5a90$81750fb0$@vasudevan@huawei.com> To: user@hbase.apache.org MIME-Version: 1.0 Subject: RE: Retrieve Put timestamp X-KeepSent: 937C48CA:FE217E07-85257A4E:005B3D0D; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.5.3 September 15, 2011 Message-ID: From: Wei Tan Date: Thu, 2 Aug 2012 12:37:39 -0400 X-MIMETrack: Serialize by Router on D01ML605/01/M/IBM(Release 8.5.3 ZX853HP5|January 12, 2012) at 08/02/2012 12:37:39, Serialize complete at 08/02/2012 12:37:39 Content-Type: multipart/alternative; boundary="=_alternative 005B565B85257A4E_=" X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12080216-5112-0000-0000-00000AAA887D --=_alternative 005B565B85257A4E_= Content-Type: text/plain; charset="US-ASCII" +1. So far I think timestamp is very useful. I would imagine if we can configure the return, say in pre/post put, it would be even nicer. Thanks, Wei Wei Tan Research Staff Member IBM T. J. Watson Research Center 19 Skyline Dr, Hawthorne, NY 10532 wtan@us.ibm.com; 914-784-6752 From: "Ramkrishna.S.Vasudevan" To: , Date: 08/02/2012 12:54 AM Subject: RE: Retrieve Put timestamp +1. Anyway all mutations extends OperationsWithAttributes also. Regards Ram > -----Original Message----- > From: Anoop Sam John [mailto:anoopsj@huawei.com] > Sent: Thursday, August 02, 2012 10:13 AM > To: user@hbase.apache.org > Subject: RE: Retrieve Put timestamp > > Currently in Append there is a setter to specify whether to return the > result or not. Similar way we can use for Put? Only with specific use > cases the return TS might be needed. > May be in a generic way we can return the attributes of the Mutation? > So any thing which the client needs back can be added into the > attributes [Any byte[] value] > and we can return the same to client [If the flag is turned on] User > can add these attributes using pre/post CP hooks. > > -Anoop- > ________________________________________ > From: saint.ack@gmail.com [saint.ack@gmail.com] on behalf of Stack > [stack@duboce.net] > Sent: Thursday, August 02, 2012 3:41 AM > To: user@hbase.apache.org > Subject: Re: Retrieve Put timestamp > > On Wed, Aug 1, 2012 at 7:12 PM, Wei Tan wrote: > > We have a similar requirement and here is the solution in our mind: > > add a coprocessor, in prePut() get the current ms and set it to put - > -- > > the current implementation get the current ms and set it in put() > > return the ms generated to prePut() to client. For now put() does not > > return any value. we need to change the behavior of it > > > > Any flaw in this design? > > In 0.96 we have moved to protobufs. The put/mutate call currently > doesn't return anything: > > message MutateResponse { > optional Result result = 1; > > // used for mutate to indicate processed only > optional bool processed = 2; > } > > Should be easy enough changing it to run timestamps? Should it do it > always or should we return the request so you have to ask for it? > > St.Ack= --=_alternative 005B565B85257A4E_=--