Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B33C3656D for ; Tue, 28 Jun 2011 11:35:35 +0000 (UTC) Received: (qmail 53707 invoked by uid 500); 28 Jun 2011 11:35:33 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 53628 invoked by uid 500); 28 Jun 2011 11:35:32 -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 53620 invoked by uid 99); 28 Jun 2011 11:35:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jun 2011 11:35:32 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a83.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jun 2011 11:35:27 +0000 Received: from homiemail-a83.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a83.g.dreamhost.com (Postfix) with ESMTP id A5E175E060 for ; Tue, 28 Jun 2011 04:35:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thelastpickle.com; h=content-type :mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; q=dns; s= thelastpickle.com; b=wshtqOym/ozHJnttqO0IMOLE98gmdxbTVxP1jeakbcj 2brKkfg31DCQu6IA5CjESjEp7SpKsP9313jTSO83CnuZM+mVTFfwHt7C9R1UwfPl sCEwoMvZuwq4WEZcw1Ye+O+JLrVu2HZMMN1s/HZ5hp31Jnm68fYFgSu5vg5Z1fV0 = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h= content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; s= thelastpickle.com; bh=92oCsnW2CmjZoCNNaxxsA6glrYo=; b=1dqZKAjHvn hBHFGKKO3i1PYjw78CxSQxVEl4hqjgRHsdGHCuLF16xEtmh5NHli0LFXLg0Ws5JG /VbPmaMEsNlIKOplImwc1D99XWJU+qqn1lwb2UXksHdkuRKRJlFVZ0k+z4vvYq37 bmvsaO2byO2a/Jl2z9aw0BmHSzo6HQ7Ik= Received: from [10.0.1.151] (121-73-157-230.cable.telstraclear.net [121.73.157.230]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a83.g.dreamhost.com (Postfix) with ESMTPSA id 2AA5F5E056 for ; Tue, 28 Jun 2011 04:35:01 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: Truncate introspection From: aaron morton In-Reply-To: Date: Tue, 28 Jun 2011 23:35:01 +1200 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: user@cassandra.apache.org X-Mailer: Apple Mail (2.1084) Drop CF takes a snapshot of the CF first, and then marks SSTables on = disk as compacted so they will be safely deleted later. Finally it = removes the CF from the meta data.=20 If you see the SSTables on disk, you should see 0 length .compacted = files for every one of them.=20 Cheers ----------------- Aaron Morton Freelance Cassandra Developer @aaronmorton http://www.thelastpickle.com On 28 Jun 2011, at 20:00, David Boxenhorn wrote: > Does drop work in a similar way? >=20 > When I drop a CF and add it back with a different schema, it seems to = work. >=20 > But I notice that in between the drop and adding it back, when the CLI > tells me the CF doesn't exist, the old data is still there. >=20 > I've been assuming that this works, but just wanted to make sure... >=20 > On Tue, Jun 28, 2011 at 12:56 AM, Jonathan Ellis = wrote: >> Each node (independently) has logic that guarantees that any writes >> processed before the truncate, will be wiped out. >>=20 >> This does not mean that each node will wipe out the same data, or = even >> that each node will process the truncate (which would result in a >> timedoutexception). >>=20 >> It also does not mean you can't have writes immediately after the >> truncate that would race w/ a "truncate, check for zero sstables" >> procedure. >>=20 >> On Mon, Jun 27, 2011 at 3:35 PM, Ethan Rowe = wrote: >>> If those went to zero, it would certainly tell me something = happened. :) I >>> guess watching that would be a way of seeing something was going on. >>> Is the truncate itself propagating a ring-wide marker or anything so = the CF >>> is logically "empty" before being physically removed? That's the = impression >>> I got from the docs but it wasn't totally clear to me. >>>=20 >>> On Mon, Jun 27, 2011 at 3:33 PM, Jonathan Ellis = wrote: >>>>=20 >>>> There's a JMX method to get the number of sstables in a CF, is that >>>> what you're looking for? >>>>=20 >>>> On Mon, Jun 27, 2011 at 1:04 PM, Ethan Rowe = wrote: >>>>> Is there any straightforward means of seeing what's going on after >>>>> issuing a >>>>> truncate (on 0.7.5)? I'm not seeing evidence that anything = actually >>>>> happened. I've disabled read repair on the column family in = question >>>>> and >>>>> don't have anything actively reading/writing at present, apart = from my >>>>> one-off tests to see if rows have disappeared. >>>>> Thanks in advance. >>>>=20 >>>>=20 >>>>=20 >>>> -- >>>> Jonathan Ellis >>>> Project Chair, Apache Cassandra >>>> co-founder of DataStax, the source for professional Cassandra = support >>>> http://www.datastax.com >>>=20 >>>=20 >>=20 >>=20 >>=20 >> -- >> Jonathan Ellis >> Project Chair, Apache Cassandra >> co-founder of DataStax, the source for professional Cassandra support >> http://www.datastax.com >>=20