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 73156629C for ; Tue, 28 Jun 2011 08:01:05 +0000 (UTC) Received: (qmail 88162 invoked by uid 500); 28 Jun 2011 08:00:59 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 87796 invoked by uid 500); 28 Jun 2011 08:00:41 -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 87768 invoked by uid 99); 28 Jun 2011 08:00:35 -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 08:00:35 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.161.43] (HELO mail-fx0-f43.google.com) (209.85.161.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jun 2011 08:00:30 +0000 Received: by fxg17 with SMTP id 17so2029493fxg.30 for ; Tue, 28 Jun 2011 01:00:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.144.129 with SMTP id z1mr10653601fau.57.1309248009120; Tue, 28 Jun 2011 01:00:09 -0700 (PDT) Received: by 10.223.83.138 with HTTP; Tue, 28 Jun 2011 01:00:09 -0700 (PDT) In-Reply-To: References: Date: Tue, 28 Jun 2011 11:00:09 +0300 Message-ID: Subject: Re: Truncate introspection From: David Boxenhorn To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Does drop work in a similar way? When I drop a CF and add it back with a different schema, it seems to work. 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. I've been assuming that this works, but just wanted to make sure... 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. > > 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). > > 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. > > On Mon, Jun 27, 2011 at 3:35 PM, Ethan Rowe wrote: >> If those went to zero, it would certainly tell me something happened. = =A0:) =A0I >> 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? =A0That's the impr= ession >> I got from the docs but it wasn't totally clear to me. >> >> On Mon, Jun 27, 2011 at 3:33 PM, Jonathan Ellis wrot= e: >>> >>> There's a JMX method to get the number of sstables in a CF, is that >>> what you're looking for? >>> >>> 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)? =A0I'm not seeing evidence that anything actuall= y >>> > happened. =A0I've disabled read repair on the column family in questi= on >>> > and >>> > don't have anything actively reading/writing at present, apart from m= y >>> > one-off tests to see if rows have disappeared. >>> > Thanks in advance. >>> >>> >>> >>> -- >>> Jonathan Ellis >>> Project Chair, Apache Cassandra >>> co-founder of DataStax, the source for professional Cassandra support >>> http://www.datastax.com >> >> > > > > -- > Jonathan Ellis > Project Chair, Apache Cassandra > co-founder of DataStax, the source for professional Cassandra support > http://www.datastax.com >