{"record":{"id":"60a74c26100f8c36","repo":"apache/cassandra","slug":"unknown-table-metric","errorCode":null,"errorMessage":"Unknown table metric ","messagePattern":"Unknown table metric ","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"src/java/org/apache/cassandra/tools/NodeProbe.java","lineNumber":2206,"sourceCode":"                    {\n                        return JMX.newMBeanProxy(mbeanServerConn, oName, CassandraMetricsRegistry.JmxGaugeMBean.class).getValue();\n                    }\n                    else\n                    {\n                        return JMX.newMBeanProxy(mbeanServerConn, oName, CassandraMetricsRegistry.JmxCounterMBean.class).getCount();\n                    }\n                }\n                case \"CoordinatorReadLatency\":\n                case \"CoordinatorScanLatency\":\n                case \"ReadLatency\":\n                case \"WriteLatency\":\n                    return JMX.newMBeanProxy(mbeanServerConn, oName, CassandraMetricsRegistry.JmxTimerMBean.class);\n                case \"LiveScannedHistogram\":\n                case \"SSTablesPerReadHistogram\":\n                case \"TombstoneScannedHistogram\":\n                    return JMX.newMBeanProxy(mbeanServerConn, oName, CassandraMetricsRegistry.JmxHistogramMBean.class);\n                default:\n                    throw new RuntimeException(\"Unknown table metric \" + metricName);\n            }\n        }\n        catch (MalformedObjectNameException e)\n        {\n            throw new RuntimeException(e);\n        }\n    }\n\n    /**\n     * Retrieve Proxy metrics\n     * @param scope RangeSlice, Read or Write\n     */\n    public CassandraMetricsRegistry.JmxTimerMBean getProxyMetric(String scope)\n    {\n        try\n        {\n            return JMX.newMBeanProxy(mbeanServerConn,\n                    new ObjectName(\"org.apache.cassandra.metrics:type=ClientRequest,scope=\" + scope + \",name=Latency\"),","sourceCodeStart":2188,"sourceCodeEnd":2224,"githubUrl":"https://github.com/apache/cassandra/blob/88fd0f6a0eaed8943f05ac9e8f947882b8ddc8f1/src/java/org/apache/cassandra/tools/NodeProbe.java#L2188-L2224","documentation":"RuntimeException from NodeProbe's table metric reader when the requested table metric name is not in the recognized set (active/pending tasks, latencies, etc.). It is a validation guard over user-supplied metric names in nodetool table-level metric commands.","triggerScenarios":"Thrown at src/java/org/apache/cassandra/tools/NodeProbe.java:2206 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a supported table metric name (see TableMetrics)","Fix the metric name spelling/case passed on the command line","Add the metric to the switch if it should be supported"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"88fd0f6a0eaed8943f05ac9e8f947882b8ddc8f1","analyzedAt":"2026-09-10T07:29:22.284Z","contentChangedAt":"2026-09-10T07:29:22.284Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}