cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Stupp (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-11961) Nonfatal NPE in CompactionMetrics
Date Sun, 05 Jun 2016 21:21:59 GMT
Robert Stupp created CASSANDRA-11961:
----------------------------------------

             Summary: Nonfatal NPE in CompactionMetrics
                 Key: CASSANDRA-11961
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11961
             Project: Cassandra
          Issue Type: Bug
            Reporter: Robert Stupp
            Priority: Minor


Just saw the following NPE on trunk. Means, that {{metaData}} from {{CFMetaData metaData =
compaction.getCompactionInfo().getCFMetaData();}} is {{null}}. A simple {{if (metaData ==
null) continue;}} should fix this.

{code}
Caused by: java.lang.NullPointerException: null
	at org.apache.cassandra.metrics.CompactionMetrics$2.getValue(CompactionMetrics.java:103)
~[main/:na]
	at org.apache.cassandra.metrics.CompactionMetrics$2.getValue(CompactionMetrics.java:78) ~[main/:na]
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message