[
https://issues.apache.org/jira/browse/CASSANDRA-20204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17913276#comment-17913276
]
Andres de la Peña commented on CASSANDRA-20204:
-----------------------------------------------
Guardrails are only applied to regular users, admin and internal are excluded.
Could it be that? I think dtest queries usually run with admin, and regular
tests run with the internal one.
{{GuardrailViewsPerTableTest}} inherits from
{{{}o.a.c.distributed.test.guardrails.GuardrailTester{}}}, which creates and
uses a non-admin user, [here|#L68-L79].
For utests, {{o.a.c.db.guardrails.GuardrailTester}} does the same
[here|https://github.com/apache/cassandra/blob/trunk/test/unit/org/apache/cassandra/db/guardrails/GuardrailTester.java#L134-L151].
> Materialized view guardrail thresholds do not work in practice
> --------------------------------------------------------------
>
> Key: CASSANDRA-20204
> URL: https://issues.apache.org/jira/browse/CASSANDRA-20204
> Project: Apache Cassandra
> Issue Type: Bug
> Components: Feature/Guardrails
> Reporter: Brandon Williams
> Priority: Normal
> Fix For: 4.1.x, 5.0.x, 5.x
>
>
> Though we have a [unit
> test|https://github.com/apache/cassandra/blob/trunk/test/unit/org/apache/cassandra/db/guardrails/GuardrailViewsPerTableTest.java]
> covering it, in practice the materialized_views_per_table thresholds do not
> seem to take effect. This can be seen for the fail threshold in [this
> dtest|https://github.com/driftx/cassandra-dtest/commit/bde91660669108f3e8a23da8e9abea37cecfd071]
> which also does not work for the warn threshold.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]