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 814A91027A for ; Mon, 1 Dec 2014 16:28:13 +0000 (UTC) Received: (qmail 5140 invoked by uid 500); 1 Dec 2014 16:28:13 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 5086 invoked by uid 500); 1 Dec 2014 16:28:13 -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 5073 invoked by uid 99); 1 Dec 2014 16:28:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2014 16:28:13 +0000 Date: Mon, 1 Dec 2014 16:28:13 +0000 (UTC) From: "Carl Yeksigian (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-8122) Undeclare throwable exception while executing 'nodetool netstats localhost' 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-8122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carl Yeksigian updated CASSANDRA-8122: -------------------------------------- Attachment: CASSANDRA-8122-2.1-v2.txt CASSANDRA-8122-2.0-v2.txt I added a call in NodeProbe to return whether or not the node is starting, so that we aren't relying on the text staying the same if we refactor the operation modes. Otherwise, +1 on the fix. > Undeclare throwable exception while executing 'nodetool netstats localhost' > --------------------------------------------------------------------------- > > Key: CASSANDRA-8122 > URL: https://issues.apache.org/jira/browse/CASSANDRA-8122 > Project: Cassandra > Issue Type: Bug > Components: Tools > Environment: Cassandra: 2.0.9 > Reporter: Vishal Mehta > Assignee: Carl Yeksigian > Priority: Minor > Attachments: CASSANDRA-8122-1.patch, CASSANDRA-8122-2.0-v2.txt, CASSANDRA-8122-2.1-v2.txt, CASSANDRA-8122-2.1.patch, CASSANDRA-8122.patch > > > *Steps* > # Stop cassandra service > # Check netstats of nodetool using 'nodetool netstats localhost' > # Start cassandra service > # Again check netstats of nodetool using 'nodetool netstats localhost' > *Expected output* > Mode: STARTING > Not sending any streams. (End of output - no further exceptions) > *Observed output* > {noformat} > nodetool netstats localhost > Mode: STARTING > Not sending any streams. > Exception in thread "main" java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy6.getReadRepairAttempted(Unknown Source) > at org.apache.cassandra.tools.NodeProbe.getReadRepairAttempted(NodeProbe.java:897) > at org.apache.cassandra.tools.NodeCmd.printNetworkStats(NodeCmd.java:726) > at org.apache.cassandra.tools.NodeCmd.main(NodeCmd.java:1281) > Caused by: javax.management.InstanceNotFoundException: org.apache.cassandra.db:type=StorageProxy > at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1095) > at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:643) > at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:678) > at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1464) > at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:97) > at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1328) > at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1420) > at javax.management.remote.rmi.RMIConnectionImpl.getAttribute(RMIConnectionImpl.java:657) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322) > at sun.rmi.transport.Transport$1.run(Transport.java:177) > at sun.rmi.transport.Transport$1.run(Transport.java:174) > at java.security.AccessController.doPrivileged(Native Method) > at sun.rmi.transport.Transport.serviceCall(Transport.java:173) > at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553) > at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808) > at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:724) > at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:273) > at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:251) > at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:160) > at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source) > at javax.management.remote.rmi.RMIConnectionImpl_Stub.getAttribute(Unknown Source) > at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.getAttribute(RMIConnector.java:902) > at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:267) > ... 4 more > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)