Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-14410

tablehistograms with non-existent table gives an exception

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 4.x
    • Component/s: Legacy/Tools
    • Labels:

      Description

      nodetool tablehistograms with non-existent table gives a crazy exception. It should give a nice error message like "Table acdc.abba doesn't exist" or something like that.

       

      Example:

      $ nodetool tablehistograms acdc.abba
      error: org.apache.cassandra.metrics:type=Table,keyspace=acdc,scope=abba,name=EstimatedPartitionSizeHistogram
      -- StackTrace --
      javax.management.InstanceNotFoundException: org.apache.cassandra.metrics:type=Table,keyspace=acdc,scope=abba,name=EstimatedPartitionSizeHistogram
          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:1445)
          at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)
          at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)
          at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401)
          at javax.management.remote.rmi.RMIConnectionImpl.getAttribute(RMIConnectionImpl.java:639)
          at sun.reflect.GeneratedMethodAccessor297.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:498)
          at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:324)
          at sun.rmi.transport.Transport$1.run(Transport.java:200)
          at sun.rmi.transport.Transport$1.run(Transport.java:197)
          at java.security.AccessController.doPrivileged(Native Method)
          at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
          at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
          at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
          at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)
          at java.security.AccessController.doPrivileged(Native Method)
          at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
          at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:283)
          at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:260)
          at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:161)
          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:903)
          at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:273)
          at com.sun.proxy.$Proxy20.getValue(Unknown Source)
          at org.apache.cassandra.tools.NodeProbe.getColumnFamilyMetric(NodeProbe.java:1334)
          at org.apache.cassandra.tools.nodetool.TableHistograms.execute(TableHistograms.java:62)
          at org.apache.cassandra.tools.NodeTool$NodeToolCmd.run(NodeTool.java:254)
          at org.apache.cassandra.tools.NodeTool.main(NodeTool.java:168)

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hkroger Hannu Kröger
                Reporter:
                hkroger Hannu Kröger
                Authors:
                Hannu Kröger
                Reviewers:
                Chris Lohfink
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: