Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 35592 invoked from network); 22 Feb 2011 23:07:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Feb 2011 23:07:02 -0000 Received: (qmail 63099 invoked by uid 500); 22 Feb 2011 23:07:02 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 63068 invoked by uid 500); 22 Feb 2011 23:07:02 -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 63054 invoked by uid 99); 22 Feb 2011 23:07:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Feb 2011 23:07:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Feb 2011 23:06:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A86831B272E for ; Tue, 22 Feb 2011 23:06:38 +0000 (UTC) Date: Tue, 22 Feb 2011 23:06:38 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: <2022863440.9503.1298415998686.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Resolved: (CASSANDRA-1143) Nodetool gives cryptic errors when given a nonexistent keyspace arg MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-1143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Ellis resolved CASSANDRA-1143. --------------------------------------- Resolution: Fixed committed, thanks! > Nodetool gives cryptic errors when given a nonexistent keyspace arg > ------------------------------------------------------------------- > > Key: CASSANDRA-1143 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1143 > Project: Cassandra > Issue Type: Wish > Components: Tools > Environment: Sun Java 1.6u20, Cassandra 0.6.2, CentOS 5.5. > Reporter: Ian Soboroff > Assignee: Joaquin Casares > Priority: Trivial > Fix For: 0.7.3 > > Attachments: 1143.diff, 1143_V2.diff > > Original Estimate: 1h > Remaining Estimate: 1h > > I typoed the keyspace arg to 'nodetool repair', and got the following exception: > /usr/local/src/cassandra/bin/nodetool --host node4 repair DocDb > Exception in thread "main" java.lang.RuntimeException: No replica strategy configured for DocDb > at org.apache.cassandra.service.StorageService.getReplicationStrategy(StorageService.java:246) > at org.apache.cassandra.service.StorageService.constructRangeToEndPointMap(StorageService.java:466) > at org.apache.cassandra.service.StorageService.getRangeToAddressMap(StorageService.java:452) > at org.apache.cassandra.service.AntiEntropyService.getNeighbors(AntiEntropyService.java:145) > at org.apache.cassandra.service.StorageService.forceTableRepair(StorageService.java:1075) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93) > at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27) > at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208) > at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120) > at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262) > at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836) > at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761) > at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427) > at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72) > at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265) > at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1360) > at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305) > at sun.rmi.transport.Transport$1.run(Transport.java:159) > at java.security.AccessController.doPrivileged(Native Method) > at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > at java.lang.Thread.run(Thread.java:619) > It would be better to report that the keyspace doesn't exist, rather than the keyspace doesn't have a replication strategy. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira