You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Andres de la Peña (Jira)" <ji...@apache.org> on 2022/01/11 11:48:00 UTC

[jira] [Commented] (CASSANDRA-17188) Guardrails for consistency levels

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

Andres de la Peña commented on CASSANDRA-17188:
-----------------------------------------------

The proposed patch adds guardrails to warn about or reject read/write consistency levels:
||PR||CI||
|[trunk|https://github.com/apache/cassandra/pull/1392]|[j8|https://app.circleci.com/pipelines/github/adelapena/cassandra/1232/workflows/e733629c-3559-4999-9ea7-14b71bc30c2c] [j11|https://app.circleci.com/pipelines/github/adelapena/cassandra/1232/workflows/4a59214a-abd9-40a5-a134-7cc05741ae55]|

The part for write consistency levels is based on a previous patch written by [~Gerrrr]. 

Some queries can trigger internal queries that use a different consistency level than that specified for the user. For example, certain write operations on lists can trigger a read. As another example, the different phases of Paxos in LWT can internally use multiple consistency levels. These internal consistency levels are not verified by the proposed guardrails, which are only applied to the regular and serial consistency levels explicitly specified by the user.

The patch modifies the existing {{Values}} type of guardrail to have a list of {{warned}} values. I think that this set of {{warned}} values can also be useful for the already existing guardrail for table properties. I have modified that guardrail to include warned properties, in addition to the current ignored and disallowed properties:
{code:java}
# Guardrail to warn about, ignore or reject properties when creating tables.
table_properties:
    warned: []
    ignored: []
    disallowed: []
{code}

> Guardrails for consistency levels
> ---------------------------------
>
>                 Key: CASSANDRA-17188
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17188
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: Feature/Guardrails
>            Reporter: Andres de la Peña
>            Assignee: Andres de la Peña
>            Priority: Normal
>
> Add guardrails for read/write consistency levels, for example:
> {code:java}
> # Guardrail to warn about or reject read consistency levels.
> # By default all consistency levels are allowed.
>     read_consistency_levels:
>         warned: []
>         disallowed: []
> # Guardrail to warn about or reject write consistency levels.
> # By default all consistency levels are allowed.
>     write_consistency_levels:
>         warned: []
>         disallowed: []
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org