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

Nonfatal NPE in CompactionMetrics

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 3.8
    • None
    • Low

    Description

      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.

      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]
      

      Attachments

        Issue Links

          Activity

            People

              achals Achal Shah
              snazy Robert Stupp
              Achal Shah
              Robert Stupp
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: