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 C5E581837B for ; Tue, 11 Aug 2015 20:27:08 +0000 (UTC) Received: (qmail 60631 invoked by uid 500); 11 Aug 2015 20:26:46 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 60516 invoked by uid 500); 11 Aug 2015 20:26:46 -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 60150 invoked by uid 99); 11 Aug 2015 20:26:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Aug 2015 20:26:46 +0000 Date: Tue, 11 Aug 2015 20:26:46 +0000 (UTC) From: "Russell Bradberry (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-10047) nodetool aborts when attempting to cleanup a keyspace with no ranges 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-10047?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Russell Bradberry updated CASSANDRA-10047: ------------------------------------------ Description: When running nodetool cleanup in a DC that has no ranges for a keyspace, nodetool will abort with the following message when attempting to cleanup that keyspace: {code} Aborted cleaning up atleast one column family in keyspace ks, check server logs for more information. error: nodetool failed, check server logs -- StackTrace -- java.lang.RuntimeException: nodetool failed, check server logs at org.apache.cassandra.tools.NodeTool$NodeToolCmd.run(NodeTool.java:290) at org.apache.cassandra.tools.NodeTool.main(NodeTool.java:202) {code} The error messages in the logs are : {code} CompactionManager.java:370 - Cleanup cannot run before a node has joined the ring {code} This behavior prevents subsequent keyspaces from getting cleaned up. The error message is also misleading as it suggests that the only reason a node may not have ranges for a keyspace is because it has yet to join the ring. was: When running nodetool cleanup in a DC that has no ranges for a keyspace, nodetool will abort with the following message when attempting to cleanup that keyspace: {{root@analytics-004:~# nodetool cleanup}} {{Aborted cleaning up atleast one column family in keyspace ks, check server logs for more information.}} {{error: nodetool failed, check server logs}} {{-- StackTrace --}} {{java.lang.RuntimeException: nodetool failed, check server logs}} {{at org.apache.cassandra.tools.NodeTool$NodeToolCmd.run(NodeTool.java:290)}} {{at org.apache.cassandra.tools.NodeTool.main(NodeTool.java:202)}} The error messages in the logs are : {{CompactionManager.java:370 - Cleanup cannot run before a node has joined the ring}} This behavior prevents subsequent keyspaces from getting cleaned up. The error message is also misleading as it suggests that the only reason a node may not have ranges for a keyspace is because it has yet to join the ring. > nodetool aborts when attempting to cleanup a keyspace with no ranges > -------------------------------------------------------------------- > > Key: CASSANDRA-10047 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10047 > Project: Cassandra > Issue Type: Bug > Components: Core > Environment: 2.1.8 > Reporter: Russell Bradberry > Priority: Critical > > When running nodetool cleanup in a DC that has no ranges for a keyspace, nodetool will abort with the following message when attempting to cleanup that keyspace: > {code} > Aborted cleaning up atleast one column family in keyspace ks, check server logs for more information. > error: nodetool failed, check server logs > -- StackTrace -- > java.lang.RuntimeException: nodetool failed, check server logs > at org.apache.cassandra.tools.NodeTool$NodeToolCmd.run(NodeTool.java:290) > at org.apache.cassandra.tools.NodeTool.main(NodeTool.java:202) > {code} > The error messages in the logs are : > {code} > CompactionManager.java:370 - Cleanup cannot run before a node has joined the ring > {code} > This behavior prevents subsequent keyspaces from getting cleaned up. The error message is also misleading as it suggests that the only reason a node may not have ranges for a keyspace is because it has yet to join the ring. -- This message was sent by Atlassian JIRA (v6.3.4#6332)