diff --git a/src/java/org/apache/cassandra/tools/nodetool/Info.java b/src/java/org/apache/cassandra/tools/nodetool/Info.java index dc721c7ddd..f312385ecf 100644 --- a/src/java/org/apache/cassandra/tools/nodetool/Info.java +++ b/src/java/org/apache/cassandra/tools/nodetool/Info.java @@ -120,13 +120,21 @@ public class Info extends AbstractCommand cacheService.getCounterCacheSavePeriodInSeconds()); // Prepared Statement Cache: entries, size, capacity, executions, evictions - out.printf("%-23s: entries %d, size %s, capacity %s, %d executions, %d evictions%n", - "Prepared Stmt Cache", - probe.getCQLMetric("PreparedStatementsCount"), - FileUtils.stringifyFileSize((long) probe.getCQLMetric("PreparedStatementsCacheSize")), - FileUtils.stringifyFileSize((long) probe.getCQLMetric("PreparedStatementsCacheCapacity")), - probe.getCQLMetric("PreparedStatementsExecuted"), - probe.getCQLMetric("PreparedStatementsEvicted")); + try + { + out.printf("%-23s: entries %d, size %s, capacity %s, %d executions, %d evictions%n", + "Prepared Stmt Cache", + probe.getCQLMetric("PreparedStatementsCount"), + FileUtils.stringifyFileSize((long) probe.getCQLMetric("PreparedStatementsCacheSize")), + FileUtils.stringifyFileSize((long) probe.getCQLMetric("PreparedStatementsCacheCapacity")), + probe.getCQLMetric("PreparedStatementsExecuted"), + probe.getCQLMetric("PreparedStatementsEvicted")); + } + catch (RuntimeException e) + { + if (!(e.getCause() instanceof InstanceNotFoundException)) + throw e; + } // Chunk Cache: Hits, Requests, RecentHitRate, SavePeriodInSeconds try