Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 72970 invoked from network); 31 May 2010 22:19:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 31 May 2010 22:19:56 -0000 Received: (qmail 8577 invoked by uid 500); 31 May 2010 22:19:55 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 8554 invoked by uid 500); 31 May 2010 22:19:55 -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 8545 invoked by uid 99); 31 May 2010 22:19:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 May 2010 22:19:55 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jbellis@gmail.com designates 209.85.214.44 as permitted sender) Received: from [209.85.214.44] (HELO mail-bw0-f44.google.com) (209.85.214.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 May 2010 22:19:48 +0000 Received: by bwz6 with SMTP id 6so26203bwz.31 for ; Mon, 31 May 2010 15:19:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=TrayJfHfFL1Eo8LfvscIf4y2WtisBF1Bn3nEUaF2Zt8=; b=odFRrJoBje4h3IJ+9W7OzSaozj3pjpibAUCU13HObcLy/5XJvuoIWmQCJtNTssZmC/ nUUiftn0E7fvPQgpT13dHk8N1PfPt2c3+5eDxkwPh/mpmV0UJXA5K6Ui7sbXbOsd/I0a KGN6T7oToQP0TCBCDEfSJjdQkYjb60L8GLReY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=iKZZDcPCB+9hlsRVsHfRxq9foZG9VY0UWAzpusjqPEa0/xc7c8Wyjrn525v5taH/An 6gDx/32LUww13cicu2azfK7UXE08AiKQhcm7cu2Bli7f0gtKB3qVPG9h++foZy36HR3u NPV1+vwc7bWGRKKBU8zlLng6JN8NbiMufAG68= Received: by 10.204.46.202 with SMTP id k10mr17164bkf.152.1275344368138; Mon, 31 May 2010 15:19:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.72.142 with HTTP; Mon, 31 May 2010 15:19:08 -0700 (PDT) In-Reply-To: References: From: Jonathan Ellis Date: Mon, 31 May 2010 17:19:08 -0500 Message-ID: Subject: Re: nodetool cleanup isn't cleaning up? 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 well, there you are then. On Mon, May 31, 2010 at 2:34 PM, Ran Tavory wrote: > yes, replication factor =3D 2 > > On Mon, May 31, 2010 at 10:07 PM, Jonathan Ellis wrot= e: >> >> you have replication factor > 1 ? >> >> On Mon, May 31, 2010 at 7:23 AM, Ran Tavory wrote: >> > I hope I=A0understand=A0nodetool cleanup correctly - it should clean u= p all >> > data >> > that does not (currently) belong to this node. If so, I think it might >> > not >> > be working correctly. >> > Look at nodes=A0192.168.252.124 and=A0192.168.252.99 below >> > 192.168.252.99Up =A0 =A0 =A0 =A0 279.35 MB >> > 3544607988759775661076818827414252202 >> > =A0 =A0 =A0|<--| >> > 192.168.252.124Up =A0 =A0 =A0 =A0 167.23 MB >> > 56713727820156410577229101238628035242 =A0 =A0 | =A0 ^ >> > 192.168.252.125Up =A0 =A0 =A0 =A0 82.91 MB >> > =A085070591730234615865843651857942052863 =A0 =A0 v =A0 | >> > 192.168.254.57Up =A0 =A0 =A0 =A0 366.6 MB >> > =A0113427455640312821154458202477256070485 =A0 =A0| =A0 ^ >> > 192.168.254.58Up =A0 =A0 =A0 =A0 88.44 MB >> > =A0141784319550391026443072753096570088106 =A0 =A0v =A0 | >> > 192.168.254.59Up =A0 =A0 =A0 =A0 88.45 MB >> > =A0170141183460469231731687303715884105727 =A0 =A0|-->| >> > I wanted 124 to take all the load from 99. So I issued a move command. >> > $ nodetool -h cass99 -p 9004 move 567137278201564105772291012386280352= 43 >> > >> > This command tells 99 to take the space b/w >> > >> > (56713727820156410577229101238628035242,=A0567137278201564105772291012= 38628035243] >> > which is basically just one item in the token space, almost nothing...= I >> > wanted it to be very slim (just playing around). >> > So, next I get this: >> > 192.168.252.124Up =A0 =A0 =A0 =A0 803.33 MB >> > 56713727820156410577229101238628035242 =A0 =A0 |<--| >> > 192.168.252.99Up =A0 =A0 =A0 =A0 352.85 MB >> > 56713727820156410577229101238628035243 =A0 =A0 | =A0 ^ >> > 192.168.252.125Up =A0 =A0 =A0 =A0 134.24 MB >> > 85070591730234615865843651857942052863 =A0 =A0 v =A0 | >> > 192.168.254.57Up =A0 =A0 =A0 =A0 676.41 MB >> > 113427455640312821154458202477256070485 =A0 =A0| =A0 ^ >> > 192.168.254.58Up =A0 =A0 =A0 =A0 99.74 MB >> > =A0141784319550391026443072753096570088106 =A0 =A0v =A0 | >> > 192.168.254.59Up =A0 =A0 =A0 =A0 99.94 MB >> > =A0170141183460469231731687303715884105727 =A0 =A0|-->| >> > The tokens are correct, but it seems that 99 still has a lot of data. >> > Why? >> > OK, that might be b/c it didn't delete its moved data. >> > So next I issued a nodetool cleanup, which should have taken care of >> > that. >> > Only that it didn't, the node 99 still has 352 MB of data. Why? >> > So, you know what, I waited for 1h. Still no good, data wasn't cleaned >> > up. >> > I restarted the server. Still, data wasn't cleaned up... I issued a >> > cleanup >> > again... still no good... what's up with this node? >> > >> > >> >> >> >> -- >> Jonathan Ellis >> Project Chair, Apache Cassandra >> co-founder of Riptano, the source for professional Cassandra support >> http://riptano.com > > --=20 Jonathan Ellis Project Chair, Apache Cassandra co-founder of Riptano, the source for professional Cassandra support http://riptano.com