Skip to content

CASSANDRA-17736: Update Config when properties are changed via JMX#4704

Open
sedulam wants to merge 1 commit intoapache:cassandra-4.0from
sedulam:pgordo/CASSANDRA-17736/cassandra-4.0
Open

CASSANDRA-17736: Update Config when properties are changed via JMX#4704
sedulam wants to merge 1 commit intoapache:cassandra-4.0from
sedulam:pgordo/CASSANDRA-17736/cassandra-4.0

Conversation

@sedulam
Copy link
Copy Markdown
Contributor

@sedulam sedulam commented Apr 4, 2026

Summary

  • When endpoint_snitch, dynamic_snitch, audit_logging_options, or full_query_logging_options
    are modified via JMX, update the corresponding Config fields so the Settings Virtual Table
    (system_views.settings) reflects current runtime values
  • Adds DatabaseDescriptor setters for endpoint_snitch (String) and dynamic_snitch (boolean)
  • Calls existing setters for audit_logging_options and full_query_logging_options
  • Includes unit tests for all changes

Test plan

  • StorageServiceServerTest: testAuditLogJmxUpdatesConfig, testSnitchSettersUpdateConfig
  • FullQueryLoggerTest: testEnableFullQueryLoggerUpdatesConfig
  • CI validation

Patch by Pedro Gordo; reviewed by for CASSANDRA-17736

When endpoint_snitch, dynamic_snitch, audit_logging_options, or
full_query_logging_options are modified via JMX, update the corresponding
Config fields so the Settings Virtual Table reflects the current runtime
values.

Patch by Pedro Gordo; reviewed by <Reviewers> for CASSANDRA-17736
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant