Return-Path: Delivered-To: apmail-incubator-cassandra-commits-archive@minotaur.apache.org Received: (qmail 90130 invoked from network); 3 Apr 2009 03:45:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Apr 2009 03:45:34 -0000 Received: (qmail 10805 invoked by uid 500); 3 Apr 2009 03:45:34 -0000 Delivered-To: apmail-incubator-cassandra-commits-archive@incubator.apache.org Received: (qmail 10782 invoked by uid 500); 3 Apr 2009 03:45:34 -0000 Mailing-List: contact cassandra-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-dev@incubator.apache.org Delivered-To: mailing list cassandra-commits@incubator.apache.org Received: (qmail 10772 invoked by uid 99); 3 Apr 2009 03:45:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 03:45:33 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 03:45:33 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E4BEF234C003 for ; Thu, 2 Apr 2009 20:45:12 -0700 (PDT) Message-ID: <880486452.1238730312931.JavaMail.jira@brutus> Date: Thu, 2 Apr 2009 20:45:12 -0700 (PDT) From: "Jun Rao (JIRA)" To: cassandra-commits@incubator.apache.org Subject: [jira] Commented: (CASSANDRA-48) test-and-set In-Reply-To: <1830224690.1238712914902.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-48?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12695224#action_12695224 ] Jun Rao commented on CASSANDRA-48: ---------------------------------- We have to be careful about the semantic of test-and-set insert. What happens if the condition is met at some, but not all replicas? If we want to fail the insert in this case, we need to be able to roll back the insert at some replicas. > test-and-set > ------------ > > Key: CASSANDRA-48 > URL: https://issues.apache.org/jira/browse/CASSANDRA-48 > Project: Cassandra > Issue Type: Improvement > Reporter: Jonathan Ellis > > Atomic test-and-set insert operation would be nice: "set value to X but only if the current value is still Y." This allows a sort of optimistic consistency: perform a GET, then perform test-and-set with the value of that GET as Y. > I do not think that this requires strong consistency to be useful. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.