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 6D1939905 for ; Sat, 11 Feb 2012 23:23:22 +0000 (UTC) Received: (qmail 2933 invoked by uid 500); 11 Feb 2012 23:23:22 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 2770 invoked by uid 500); 11 Feb 2012 23:23:21 -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 2757 invoked by uid 99); 11 Feb 2012 23:23:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Feb 2012 23:23:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Feb 2012 23:23:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E01FE1B18D8 for ; Sat, 11 Feb 2012 23:22:59 +0000 (UTC) Date: Sat, 11 Feb 2012 23:22:59 +0000 (UTC) From: "Zhihong Yu (Commented) (JIRA)" To: issues@hbase.apache.org Message-ID: <1825724478.28798.1329002579919.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <585229115.3711.1298944296934.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-3584) Allow atomic put/delete in one call MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13206297#comment-13206297 ] Zhihong Yu commented on HBASE-3584: ----------------------------------- I looked at 89-fb/src/main/java/org/apache/hadoop/hbase/client/RowMutation.java It is not versioned. And write(DataOutput out) has: {code} out.writeLong(RowMutation.globalOrderCounter.incrementAndGet()); {code} The divergence is noticeable. If RowMutation in 89-fb were versioned, we may be able to assign a higher version number to RowMutation in TRUNK. But that's not pretty either. > Allow atomic put/delete in one call > ----------------------------------- > > Key: HBASE-3584 > URL: https://issues.apache.org/jira/browse/HBASE-3584 > Project: HBase > Issue Type: New Feature > Components: client, coprocessors, regionserver > Reporter: ryan rawson > Assignee: Lars Hofhansl > Fix For: 0.94.0 > > Attachments: 3584-final.txt, 3584-v1.txt, 3584-v3.txt > > > Right now we have the following calls: > put(Put) > delete(Delete) > increment(Increments) > But we cannot combine all of the above in a single call, complete with a single row lock. It would be nice to do that. > It would also allow us to do a CAS where we could do a put/increment if the check succeeded. > ----- > Amendment: > Since Increment does not currently support MVCC it cannot be included in an atomic operation. > So this for Put and Delete only. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira