Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--emulate-dbaas-defaults overrides any guardrail settings provided by a cassandra yaml #1799

Open
mpenick opened this issue Apr 26, 2022 · 0 comments

Comments

@mpenick
Copy link
Contributor

mpenick commented Apr 26, 2022

cassandra.yaml settings load by the system property stargate.unsafe.cassandra_config_path will be overridden by also providing --emulate-dbaas-defaults.

https://github.com/stargate/stargate/blob/v1.0.54/persistence-dse-6.8/src/main/java/io/stargate/db/dse/DsePersistenceActivator.java#L146-L150

    if (Boolean.parseBoolean(System.getProperty("stargate.emulate_dbaas_defaults", "false"))) {
      c.emulate_dbaas_defaults = true;
      GuardrailsConfig guardrailsConfig = new GuardrailsConfig();
      guardrailsConfig.secondary_index_per_table_failure_threshold = 6;
      c.guardrails = guardrailsConfig; // <-- This will erase an previous guardrail settings loaded from a `cassandra.yaml`
    }
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

No branches or pull requests

1 participant