Return-Path: Delivered-To: apmail-cassandra-dev-archive@www.apache.org Received: (qmail 84225 invoked from network); 2 May 2010 08:00:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 May 2010 08:00:21 -0000 Received: (qmail 42162 invoked by uid 500); 2 May 2010 08:00:21 -0000 Delivered-To: apmail-cassandra-dev-archive@cassandra.apache.org Received: (qmail 41835 invoked by uid 500); 2 May 2010 08:00:18 -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 41827 invoked by uid 99); 2 May 2010 08:00:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 May 2010 08:00:18 +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; Sun, 02 May 2010 08:00:10 +0000 Received: by iwn39 with SMTP id 39so1773636iwn.7 for ; Sun, 02 May 2010 00:59:48 -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=14z39SDu9kESfCv5WnmnC7ieVYS8YwZA0fPK3cdLzN0=; b=A8LEwUQKTFr/wKDwPlu7dCVGAksWRMDPPgKyTi+iU7lnmHySpdQUpzYfXzc7iGRZ8b cR1MRaNNZZs3Z4ZMjsM4w2+V+HnP1nzG7iiJERE1Ox9nWcOUiTZRc4x+C6OAKiut/s11 CJstTPKuC1Nb21FADOElx8dBDsuqWGAECPnoU= 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=b3fpoxPgq93Bu4csiKhmLe+mAo0lJX94c22qSQ688lbr9AZAmnjLJQxdYyPDZXIZvo 8C+MR+eAbpwS6fpRuLtXindo6Dh4uzUjzBDYkqe3lDYlzErC1N1vEeVwd+TP4mbgKqeH TxGcoqZnJGmsFgNecdEnNan7rZsPNbOV7TpX0= MIME-Version: 1.0 Received: by 10.231.191.73 with SMTP id dl9mr3715063ibb.50.1272787188561; Sun, 02 May 2010 00:59:48 -0700 (PDT) Received: by 10.231.162.72 with HTTP; Sun, 2 May 2010 00:59:48 -0700 (PDT) In-Reply-To: References: Date: Sun, 2 May 2010 10:59:48 +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=0016367d4eac3fbb34048597dc45 X-Virus-Checked: Checked by ClamAV on apache.org --0016367d4eac3fbb34048597dc45 Content-Type: text/plain; charset=UTF-8 I've added the JMX work to StorageService and NodeTool so this work is done, ready for final review, thanks https://issues.apache.org/jira/secure/attachment/12443404/CASSANDRA-531.patch On Sun, May 2, 2010 at 12:05 AM, Ran Tavory wrote: > 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. :) >> >> >> >> > >> > >> > > --0016367d4eac3fbb34048597dc45--