Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 57133 invoked from network); 13 Jul 2010 12:47:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Jul 2010 12:47:46 -0000 Received: (qmail 36076 invoked by uid 500); 13 Jul 2010 12:47:45 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 35926 invoked by uid 500); 13 Jul 2010 12:47:42 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 35918 invoked by uid 99); 13 Jul 2010 12:47:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jul 2010 12:47:41 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of samurujackson@googlemail.com designates 209.85.160.44 as permitted sender) Received: from [209.85.160.44] (HELO mail-pw0-f44.google.com) (209.85.160.44) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jul 2010 12:47:35 +0000 Received: by pwj1 with SMTP id 1so2682763pwj.31 for ; Tue, 13 Jul 2010 05:47:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=v7GoTTMH1SkuQHKo6q55ruqBlEW18KkMhRPe0UKeRc8=; b=YXjzd5laP41BkgPpyFLtKXdAX2ZBwVDmuBnNhE19RH5lv60g7GwpwywOAJThWUFa/S nlWnxqKO653aaZVOZfrYt4yCMzx3FXP2DOXNkIYydyDrqu+J0MpKkGBcrkC17Qfvu+kA XzHuPJti5vs/XQhwobosy8b+YLpFze72JPPrE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=qQuJnafm5338BnF0mpAS7XeAJ/Jryis90Mj5lWuw53YXv3DH7M9e9qeayilzWJfdDH WkEZ8gHVubx6drouojPldsQbUeA7pIPMEJmp6fV3pRdxxpEaktLYVXwrhtEgA6rQvlnq 1Ffd5TkXNBafrEXZb5yrjYYrMaDUMEv2o0yVQ= MIME-Version: 1.0 Received: by 10.142.142.12 with SMTP id p12mr18725711wfd.13.1279025233539; Tue, 13 Jul 2010 05:47:13 -0700 (PDT) Received: by 10.142.233.2 with HTTP; Tue, 13 Jul 2010 05:47:13 -0700 (PDT) In-Reply-To: References: Date: Tue, 13 Jul 2010 08:47:13 -0400 Message-ID: Subject: Re: Question regarding consistency and deletion From: Samuru Jackson To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Thanks for the links. Actually it is pretty easy to catch those tombstoned keys on the client side. However, in certain applications it can generate some additional overhead on the network. I think it would be nice to have a forced garbage collection in the API. This would IMHO ease to write Unit-Tests. /SJ On Mon, Jul 12, 2010 at 6:34 PM, Aaron Morton wro= te: > The Tomstones are removed after GCGraceSeconds (in the storage-config.xml= ), > at the next Major Compaction > http://wiki.apache.org/cassandra/MemtableSSTable?highlight=3D%28tombstone= s%29 > > Take a look at http://wiki.apache.org/cassandra/DistributedDeletes=A0 and > Handling Failure on http://wiki.apache.org/cassandra/Operations > > This one explains the internal reason the tombstoned keys are returned > http://wiki.apache.org/cassandra/FAQ#range_ghosts > > You could reduce the GCGraceSeconds. Others may have a better idea how to > force it. > > Aaron > On 13 Jul, 2010,at 03:17 AM, Samuru Jackson > wrote: > > Hi, > > I'm fairly new to Cassandra and started to set up a small cluster for > playing around and evaluating it for my potential purposes. > > As far as I understand I can't remove whole rows - instead the columns > of a deleted rows are removed and a client can decided based on the > row's column count if it treats a part of a returned slice as deleted > or not. Those empty rows are referenced as a Tombstone in Cassandras > terminology- right? > > Is there any way to force the sync/garbage collection of the deletion > of the such empty rows? > > Reading the mailinglist, this behaviour is relating to the weak > consistency of Cassandra. What I don't understand is, why is it > possible to remove the columns of a row, but not the whole row? Could > you give me some further reading on this topic? > > Thanks! > > SJ >