[
https://issues.apache.org/jira/browse/CASSANDRA-17593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17534478#comment-17534478
]
David Capwell commented on CASSANDRA-17593:
-------------------------------------------
Starting commit
CI Results (pending):
||Branch||Source||Circle CI||Jenkins||
|cassandra-4.1|[branch|https://github.com/dcapwell/cassandra/tree/commit_remote_branch/CASSANDRA-17593-cassandra-4.1-DE580542-E93B-4970-B02F-6D7DBAFCE3B5]|[build|https://app.circleci.com/pipelines/github/dcapwell/cassandra?branch=commit_remote_branch%2FCASSANDRA-17593-cassandra-4.1-DE580542-E93B-4970-B02F-6D7DBAFCE3B5]|[build|https://ci-cassandra.apache.org/job/Cassandra-devbranch/1697/]|
|trunk|[branch|https://github.com/dcapwell/cassandra/tree/commit_remote_branch/CASSANDRA-17593-trunk-DE580542-E93B-4970-B02F-6D7DBAFCE3B5]|[build|https://app.circleci.com/pipelines/github/dcapwell/cassandra?branch=commit_remote_branch%2FCASSANDRA-17593-trunk-DE580542-E93B-4970-B02F-6D7DBAFCE3B5]|[build|https://ci-cassandra.apache.org/job/Cassandra-devbranch/1698/]|
> StorageService read threshold get methods throw NullPointerException due to
> not handling null configs
> -----------------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-17593
> URL: https://issues.apache.org/jira/browse/CASSANDRA-17593
> Project: Cassandra
> Issue Type: Bug
> Components: Observability/JMX
> Reporter: David Capwell
> Assignee: David Capwell
> Priority: Normal
> Fix For: 4.1
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> org.apache.cassandra.service.StorageService#getCoordinatorLargeReadWarnThreshold
> and other similar get methods touch the following null configs
> {code}
> 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
> {code}
> 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
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]