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/02/15 15:40:00 UTC

[jira] [Updated] (CASSANDRA-17153) Guardrails for collection items and size

     [ https://issues.apache.org/jira/browse/CASSANDRA-17153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andres de la Peña updated CASSANDRA-17153:
------------------------------------------
    Description: 
Add guardrails for the number of items and size of collections. For example:

{code}
# Guardrail to warn or fail when encountering larger size of collection data than threshold.
# The two thresholds default to 0KiB to disable.
collection_size_warn_threshold: 0KiB
collection_size_fail_threshold: 0KiB

# Guardrail to warn or fail when encountering more elements in collection than threshold.
# The two thresholds default to -1 to disable.
items_per_collection_warn_threshold: -1
items_per_collection_fail_threshold: -1
{code}

  was:
Add guardrails for the number of items in a collection/UDT and possibly also the size of a collection. For example:

{code}
# Failure threshold to prevent creating more fields in user-defined-type than threshold.
# Defaults -1 to disable.
# fields_per_udt_failure_threshold: -1

# Warning threshold to warn when encountering larger size of collection data than threshold.
# Defaults -1 to disable.
# collection_size_warn_threshold_in_kb: -1

# Warning threshold to warn when encountering more elements in collection than threshold.
# Defaults -1 to disable.
# items_per_collection_warn_threshold: -1
{code}

        Summary: Guardrails for collection items and size  (was: Guardrails for collection/UDT items and size)

> Guardrails for collection items and size
> ----------------------------------------
>
>                 Key: CASSANDRA-17153
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17153
>             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 the number of items and size of collections. For example:
> {code}
> # Guardrail to warn or fail when encountering larger size of collection data than threshold.
> # The two thresholds default to 0KiB to disable.
> collection_size_warn_threshold: 0KiB
> collection_size_fail_threshold: 0KiB
> # Guardrail to warn or fail when encountering more elements in collection than threshold.
> # The two thresholds default to -1 to disable.
> items_per_collection_warn_threshold: -1
> items_per_collection_fail_threshold: -1
> {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