Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 11836 invoked from network); 9 Nov 2009 16:54:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Nov 2009 16:54:20 -0000 Received: (qmail 69300 invoked by uid 500); 9 Nov 2009 16:54:19 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 69284 invoked by uid 500); 9 Nov 2009 16:54:19 -0000 Mailing-List: contact cassandra-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-user@incubator.apache.org Delivered-To: mailing list cassandra-user@incubator.apache.org Received: (qmail 69275 invoked by uid 99); 9 Nov 2009 16:54:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Nov 2009 16:54:19 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jbellis@gmail.com designates 216.239.58.186 as permitted sender) Received: from [216.239.58.186] (HELO gv-out-0910.google.com) (216.239.58.186) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Nov 2009 16:54:11 +0000 Received: by gv-out-0910.google.com with SMTP id c6so260732gvd.17 for ; Mon, 09 Nov 2009 08:53:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=TLObo56H4M4Cvws5X+kwd6UaVslO2vtGjFNBspDsEBc=; b=XOHL7VGNzfReFUfyhF3Bp1OHM8z4yGEWfyAlV+OfSv0q7LdG0ls8S0FSAEdvXxy0x7 5oN5u/RpgmP11Meo8pjgOpURez9cVYuVRVyykhfJX15JqE3CWXIDXlLMBC3K2TpF/aP7 3jV0zWVycFEOhRWN5LdNFYNGzoXsn4mm7SfAA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=dwXP6GL1FyuiH+AnS5/CNbYtbQ9mXXNRnE8zMep2g4vBKklbgmlTHqH6qJR9HEuoRe 2KFOzPPwdVixeBIK917mRYX+GO0Oqhh7ygWIZwWjzN2jDpjUFezMMBBcA89AH36A5Lco tw9X5k8sCy1Z6sQpRbcNoPESTqccTwraAvYoA= MIME-Version: 1.0 Received: by 10.216.85.5 with SMTP id t5mr2525150wee.142.1257785631155; Mon, 09 Nov 2009 08:53:51 -0800 (PST) In-Reply-To: References: From: Jonathan Ellis Date: Mon, 9 Nov 2009 10:53:31 -0600 Message-ID: Subject: Re: why does remove need a timestamp? To: cassandra-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org wiki is publicly editable, just click Login to create account On Mon, Nov 9, 2009 at 10:46 AM, Ramzi Rabah wrote: > Makes lots of sense. > It would be nice to update the API wiki for remove: > http://wiki.apache.org/cassandra/API > > with these details, since the current wording is potentially vague and > misleading. > > Thanks guys > Ray > > On Mon, Nov 9, 2009 at 2:43 AM, Mark Robson wrote: >> >> >> 2009/11/9 Ramzi Rabah >>> >>> Hello all: >>> I am confused about the need of passing a =A0timestamp for the remove >>> operation. Why does the remove operation in Cassandra require a >>> timestamp? What happens if I provide a remove call with a different >>> timestamp than what I inserted, will the row still be deleted? >> >> It is so that if the commands are replayed in a different order on diffe= rent >> nodes, the same result is produced. >> >> Remove only removes values which have a timestamp of before or the same = as >> the one provided - this is essential, as if a "later" insert "overtakes"= the >> remove, the remove needs to avoid removing "newer" data. >> >> The eventual consistency model only works (i.e. only produces consistenc= y) >> if mutations have the same effect regardless of the order they are appli= ed >> in. >> >> That is my understanding anyway. >> >> Mark >> >