Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 160A718236 for ; Thu, 25 Jun 2015 13:45:05 +0000 (UTC) Received: (qmail 83951 invoked by uid 500); 25 Jun 2015 13:45:05 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 83911 invoked by uid 500); 25 Jun 2015 13:45:04 -0000 Mailing-List: contact commits-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 commits@cassandra.apache.org Received: (qmail 83898 invoked by uid 99); 25 Jun 2015 13:45:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jun 2015 13:45:04 +0000 Date: Thu, 25 Jun 2015 13:45:04 +0000 (UTC) From: "Erick Ramirez (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-9652) Nodetool cleanup does not work for nodes taken out of replication MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-9652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Erick Ramirez updated CASSANDRA-9652: ------------------------------------- Description: After taking a node (DC) out of replication, running a cleanup does not get rid of the data on the node. The SSTables remain on disk and no data is cleared out. The following entry is recorded in {{system.log}}: {noformat} INFO [CompactionExecutor:8] 2015-06-25 12:33:01,417 CompactionManager.java (line 527) Cleanup cannot run before a node has joined the ring {noformat} *STEPS TO REPRODUCE* # Build a (C* 2.0.10) cluster with multiple DCs. # Run {{cassandra-stress -n1}} to create schema. # Alter schema to replicate to all DCs. {noformat} cqlsh> ALTER KEYSPACE "Keyspace1" WITH replication = { 'class' : 'NetworkTopologyStrategy', 'DC1' : 2, 'DC2' : 2, 'DC3' : 1 } ; {noformat} # Run {{cassandra-stress -n100000}} to generate data. # Alter schema to stop replication to {{DC3}}. # On node in {{DC3}}, run {{nodetool cleanup}}. *WORKAROUND* # Stop Cassandra. # Manually delete the SSTables on disk. # Start Cassandra. was: After taking a node (DC) out of replication, running a cleanup does not get rid of the data on the node. The SSTables remain on disk and no data is cleared out. The following entry is recorded in {{system.log}}: {noformat} INFO [CompactionExecutor:8] 2015-06-25 12:33:01,417 CompactionManager.java (line 527) Cleanup cannot run before a node has joined the ring {noformat} *STEPS TO REPRODUCE* # Build a (C* 2.0.10) cluster with multiple DCs. # Run {{cassandra-stress -n1}} to create schema. # Alter schema to replicate to all DCs. {noformat} cqlsh> ALTER KEYSPACE "Keyspace1" WITH replication = { 'class' : 'NetworkTopologyStrategy', 'DC1' : 2, 'DC2' : 2, 'DC3' : 1 } ; {noformat} # Run {{cassandra-stress -n100000}} to generate data. # Alter schema to stop replication to {{DC3}}. # On node in {{DC3}}, run {{nodetool cleanup}}. > Nodetool cleanup does not work for nodes taken out of replication > ----------------------------------------------------------------- > > Key: CASSANDRA-9652 > URL: https://issues.apache.org/jira/browse/CASSANDRA-9652 > Project: Cassandra > Issue Type: Bug > Reporter: Erick Ramirez > > After taking a node (DC) out of replication, running a cleanup does not get rid of the data on the node. The SSTables remain on disk and no data is cleared out. > The following entry is recorded in {{system.log}}: > {noformat} > INFO [CompactionExecutor:8] 2015-06-25 12:33:01,417 CompactionManager.java (line 527) Cleanup cannot run before a node has joined the ring > {noformat} > *STEPS TO REPRODUCE* > # Build a (C* 2.0.10) cluster with multiple DCs. > # Run {{cassandra-stress -n1}} to create schema. > # Alter schema to replicate to all DCs. > {noformat} > cqlsh> ALTER KEYSPACE "Keyspace1" WITH replication = { 'class' : 'NetworkTopologyStrategy', 'DC1' : 2, 'DC2' : 2, 'DC3' : 1 } ; > {noformat} > # Run {{cassandra-stress -n100000}} to generate data. > # Alter schema to stop replication to {{DC3}}. > # On node in {{DC3}}, run {{nodetool cleanup}}. > *WORKAROUND* > # Stop Cassandra. > # Manually delete the SSTables on disk. > # Start Cassandra. -- This message was sent by Atlassian JIRA (v6.3.4#6332)