[
https://issues.apache.org/jira/browse/CASSANDRA-20913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18022385#comment-18022385
]
Stefan Miklosovic edited comment on CASSANDRA-20913 at 9/24/25 10:10 AM:
-------------------------------------------------------------------------
Implementation-wise, I think it would be good to model this as already done in
case of table properties guardrail (1). A keyspace has also properties as a
table has. So if we did not want to have "durable_writes" specified, then they
would be marked as "disallowed", then default, true, would be used for
durable_writes. I do not think there should be a guardrail taking care of one
specific parameter, we should treat whole family of properties on a keyspace
instead.
(1)
https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/db/guardrails/Guardrails.java#L135-L144
was (Author: smiklosovic):
Implementation-wise, I think it would be good to model this as already done in
case of table properties guardrail (1). A keyspace has also properties as a
table has. So if we did not want to have "durable_writes" specified, then they
would be marked as "disallowed", then default, false, would be used for
durable_writes. I do not think there should be a guardrail taking care of one
specific parameter, we should treat whole family of properties on a keyspace
instead.
(1)
https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/db/guardrails/Guardrails.java#L135-L144
> Add DDL Guardrail enabling administrators to disallow creation/modification
> of key spaces with durable_writes = false
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-20913
> URL: https://issues.apache.org/jira/browse/CASSANDRA-20913
> Project: Apache Cassandra
> Issue Type: Improvement
> Components: Feature/Guardrails, Local/Commit Log
> Reporter: Aparna Naik
> Assignee: Aparna Naik
> Priority: Normal
> Fix For: 6.x
>
>
> This change implements a guardrail to disallow creation or alteration of key
> spaces to set the property durable_writes = false; durable_writes = true or
> unset should be the only allowable options for this property when enabled.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]