[ 
https://issues.apache.org/jira/browse/CASSANDRA-20749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18013140#comment-18013140
 ] 

Paulo Motta edited comment on CASSANDRA-20749 at 8/11/25 3:38 AM:
------------------------------------------------------------------

bq. What would you like to do except throwing an exception like that? 

nevermind it was late and I was trying to do stupid things, since the test 
examples were trying to use {{sstable_preemptive_open_interval_in_mb}} as table 
settings but the test was not failing since this was only testing 
{{YamlConfigurationLoader}}. I updated the tests and examples in 
{{jvm-server.options}} to use valid settings.

rebased + squashed - trunk CI: 
https://ci-cassandra.apache.org/view/patches/job/Cassandra-devbranch-5/378/


was (Author: paulo):
bq. What would you like to do except throwing an exception like that? 

nevermind it was late and I was trying to do stupid things, since the test 
examples were trying to use {{sstable_preemptive_open_interval_in_mb}} as table 
settings but the test was not failing since this was only testing 
{{YamlConfigurationLoader}}. I updated the tests and examples in 
{{jvm-server.options}} to use valid settings.

rebased + squashed - trunk CI: 
https://ci-cassandra.apache.org/view/patches/job/Cassandra-devbranch-5/377/

> Allow overriding arbitrary settings via environment variables
> -------------------------------------------------------------
>
>                 Key: CASSANDRA-20749
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-20749
>             Project: Apache Cassandra
>          Issue Type: Improvement
>          Components: Local/Config
>            Reporter: Paulo Motta
>            Assignee: Paulo Motta
>            Priority: Normal
>          Time Spent: 3h 10m
>  Remaining Estimate: 0h
>
> Allow arbitrary cassandra.yaml settings to be overriden via environment 
> variables. This allows performing runtime overrides to a cassandra node 
> configuration without updating cassandra.yaml, what can be useful to test 
> isolated changes or in docker environments where runtime environment 
> variables can be supplied via the {{--env}} flag.
> This should transparently override arbitrary configuration supported in 
> cassandra.yaml via environment variables loaded during startup matching the 
> format {{{}CASS_{CASSANDRA_YAML_CONFIG_NAME{}}}}. So for example, to override 
> the {{cassandra.yaml}} configuration cdc_enabled, this can be overriden via 
> the environment variable {{{}CASS_CDC_ENABLED{}}}, the cassandra.yaml setting 
> {{key_cache_save_period}} can be overriden via {{CASS_KEY_CACHE_SAVE_PERIOD}} 
> and so on. This should support both simple and complex properties.
> This is analogous to the functionality added by CASSANDRA-17166 to override 
> arbitrary configurations via system properties enabled by the flag 
> {{{}-Dcassandra.config.allow_system_properties{}}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to