Return-Path: Delivered-To: apmail-cassandra-dev-archive@www.apache.org Received: (qmail 9740 invoked from network); 1 May 2010 21:06:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 May 2010 21:06:00 -0000 Received: (qmail 73968 invoked by uid 500); 1 May 2010 21:06:00 -0000 Delivered-To: apmail-cassandra-dev-archive@cassandra.apache.org Received: (qmail 73941 invoked by uid 500); 1 May 2010 21:06:00 -0000 Mailing-List: contact dev-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list dev@cassandra.apache.org Received: (qmail 73933 invoked by uid 99); 1 May 2010 21:05:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 May 2010 21:05:59 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,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 rantav@gmail.com designates 209.85.223.201 as permitted sender) Received: from [209.85.223.201] (HELO mail-iw0-f201.google.com) (209.85.223.201) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 May 2010 21:05:52 +0000 Received: by iwn39 with SMTP id 39so1497824iwn.7 for ; Sat, 01 May 2010 14:05:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=XnmPfxCmdVSb0pIyCnLqyk2MM7TY0QzFuXZRm8/ir8s=; b=JK2bFpCQ0MqzmGsirKwp9KZNH6aKFimGLoQk8FYS74bH+Q0k6g1ofu3Er7mBBGufgF o7Iy8BfFN2IRvbdnp5W5ftppUD6HGQFDHFyhHsTHuT+rCUfCxO1Pzb8Ao/lhayVcvBxH CswDjgHrGPMyOkxezFDm5Xx9a7AaHFduPMctw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=DwYV6OjleHTF4O5485z64Qmoy6pVicB6HyCvPCvWFhrrahOtKCRR+gzSivFQ5sPcTv xyfey+he5k0uE97++prJ/wy9dZVIc+GPLAfw/bxQlzfb5Ued2x0ZMIVaCTDSE/QyVqZt lvY8tUbFKbbauAvkvaq3/GKZD4b5ibG+vKAZU= MIME-Version: 1.0 Received: by 10.231.85.205 with SMTP id p13mr3815091ibl.8.1272747927107; Sat, 01 May 2010 14:05:27 -0700 (PDT) Received: by 10.231.162.72 with HTTP; Sat, 1 May 2010 14:05:26 -0700 (PDT) In-Reply-To: References: Date: Sun, 2 May 2010 00:05:26 +0300 Message-ID: Subject: Re: how to delete data From: Ran Tavory To: gdusbabek@gmail.com Cc: dev@cassandra.apache.org Content-Type: multipart/alternative; boundary=001485eba2e815923f04858eb867 X-Virus-Checked: Checked by ClamAV on apache.org --001485eba2e815923f04858eb867 Content-Type: text/plain; charset=UTF-8 alright, I've uploaded another patch with these updates: https://issues.apache.org/jira/secure/attachment/12443391/CASSANDRA-531.patch In this patch I completed all the thrift wiring work, including internal messaging to all hosts in the cluster. The patch includes all previous changes, no need to use the previous patches. I've changed the truncate method definition in cassandra.thrift and removed the timestamp from the truncation signature since it's not used. More changes are in the patch, including system test, thrift and messaging implementation, taking a snapshot and deleting the actual files. TODO: Add truncate to the JMX interface Add truncate to nodetool Add system tests to test nodetool + JMX On Wed, Apr 28, 2010 at 2:53 PM, Gary Dusbabek wrote: > You bet. Take a look at CFS.snapshot(). You basically supply a name > and a hard link is created. > > Gary. > > On Wed, Apr 28, 2010 at 06:49, Ran Tavory wrote: > > Thanks Gary, can you send a code pointer how snapshot is done? > > > > On Wed, Apr 28, 2010 at 2:46 PM, Gary Dusbabek > wrote: > >> > >> I think it's in the right direction. You've handled the memtable, > >> sstables and commit log. Other than what's listed in the todos, I > >> can't think of anything else. > >> > >> As for the files, it's probably best to snapshot before truncating. > >> That's the approach I was encouraged to take for the DROP CF > >> operation. > >> > >> Gary. > >> > >> On Wed, Apr 28, 2010 at 03:59, Ran Tavory wrote: > >> > Finally I found the time to start this work... > >> > It's half baked, but I listed all the missing parts so I'll continue > the > >> > work if the patch is good so far. No need to apply the patch, just > have > >> > look > >> > and lmk if I'm at the right direction > >> > > >> > > https://issues.apache.org/jira/secure/attachment/12443055/CASSANDRA-531.patch > >> > > >> > > >> > < > https://issues.apache.org/jira/secure/attachment/12443055/CASSANDRA-531.patch > > > >> > Thanks > >> > > >> > On Thu, Mar 25, 2010 at 9:32 PM, Jonathan Ellis > >> > wrote: > >> > > >> >> Commented on the Jira issue. > >> >> > >> >> Curious how badly out of date that patch is now. :) > >> >> > > > > > --001485eba2e815923f04858eb867--