[
https://issues.apache.org/jira/browse/CASSANDRA-17154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17460115#comment-17460115
]
Andres de la Peña edited comment on CASSANDRA-17154 at 12/15/21, 5:24 PM:
--------------------------------------------------------------------------
The proposed PR adds a new guardrails named
{{read_before_write_list_operations_enabled}} that disables setting list
elements by index and removing list elements by either index or value.
||PR||CI||
|[trunk|https://github.com/apache/cassandra/pull/1366]|[j8|https://app.circleci.com/pipelines/github/adelapena/cassandra/1212/workflows/752519f8-afa1-4813-a9fd-c8b06211854d]
[j11|https://app.circleci.com/pipelines/github/adelapena/cassandra/1212/workflows/872a9039-86b8-48b5-addd-75099175c490]|
The guardrail itself is quite simple, but getting the {{ClientState}} into the
proper methods in {{Lists}} is a bit noisy.
was (Author: adelapena):
The proposed PR adds a new guardrails named
{{read_before_write_list_operations_enabled}} that disables setting list
elements by index and removing list elements by either index or value.
||PR||CI||
|[trunk|https://github.com/apache/cassandra/pull/1366]|[j8|https://app.circleci.com/pipelines/github/adelapena/cassandra/1212/workflows/752519f8-afa1-4813-a9fd-c8b06211854d]
[j11|https://app.circleci.com/pipelines/github/adelapena/cassandra/1212/workflows/7734e98f-93c2-4bbb-993a-7523d9669a94]|
The guardrail itself is quite simple, but getting the {{ClientState}} into the
proper methods in {{Lists}} is a bit noisy.
> Guardrail to disable read-before-write list operations
> ------------------------------------------------------
>
> Key: CASSANDRA-17154
> URL: https://issues.apache.org/jira/browse/CASSANDRA-17154
> Project: Cassandra
> Issue Type: New Feature
> Components: Feature/Guardrails
> Reporter: Andres de la Peña
> Assignee: Andres de la Peña
> Priority: Normal
>
> Add guardrail to disable list operations implying read-before-write. For
> example:
> {code}
> # Whether read-before-write operation is allowed, eg. setting list element by
> index, removing list element.
> # Defaults to true to allow read before write operations
> read_before_write_list_operations_enabled: true
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]