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

StorageService read threshold get methods throw NullPointerException due to not handling null configs

    XMLWordPrintableJSON

Details

    Description

      org.apache.cassandra.service.StorageService#getCoordinatorLargeReadWarnThreshold and other similar get methods touch the following null configs

      public volatile DataStorageSpec coordinator_read_size_warn_threshold = null;
      public volatile DataStorageSpec coordinator_read_size_fail_threshold = null;
      public volatile DataStorageSpec local_read_size_warn_threshold = null;
      public volatile DataStorageSpec local_read_size_fail_threshold = null;
      public volatile DataStorageSpec row_index_read_size_warn_threshold = null;
      public volatile DataStorageSpec row_index_read_size_fail_threshold = null
      

      Null is a valid state for these configs, so null must be handled in the get methods; they currently are not and throw NullPointerException when accessed via JMX

      Attachments

        Issue Links

          Activity

            People

              dcapwell David Capwell
              dcapwell David Capwell
              David Capwell
              Berenguer Blasi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m