From f5bde684c107e5702f80b4d1cdb474706b155ca7 Mon Sep 17 00:00:00 2001 From: Yuqi Yan Date: Mon, 15 Apr 2024 11:58:38 -0700 Subject: [PATCH 1/2] Guardrail to block DDL/DCL queries --- NEWS.txt | 1 - conf/cassandra.yaml | 7 +- conf/cassandra_latest.yaml | 7 +- .../org/apache/cassandra/config/Config.java | 3 +- .../cassandra/config/GuardrailsOptions.java | 42 ++- .../apache/cassandra/cql3/CQLStatement.java | 10 + .../apache/cassandra/cql3/QueryProcessor.java | 6 + .../statements/AuthenticationStatement.java | 6 + .../statements/AuthorizationStatement.java | 6 + .../schema/AlterSchemaStatement.java | 6 + .../schema/AlterTableStatement.java | 3 - .../cassandra/db/guardrails/Guardrails.java | 63 ++-- .../db/guardrails/GuardrailsConfig.java | 21 +- .../db/guardrails/GuardrailsMBean.java | 38 +- test/data/config/version=5.0-alpha1.yml | 3 +- .../guardrails/GuardrailAlterTableTest.java | 72 ++-- .../guardrails/GuardrailDCLEnabledTest.java | 210 +++++++++++ .../guardrails/GuardrailDDLEnabledTest.java | 338 ++++++++++++++++++ .../db/guardrails/GuardrailTester.java | 4 +- 19 files changed, 733 insertions(+), 113 deletions(-) create mode 100644 test/unit/org/apache/cassandra/db/guardrails/GuardrailDCLEnabledTest.java create mode 100644 test/unit/org/apache/cassandra/db/guardrails/GuardrailDDLEnabledTest.java diff --git a/NEWS.txt b/NEWS.txt index 1ba8f6639e..513f72e179 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -116,7 +116,6 @@ New features - Added a new CQL function, maxwritetime. It shows the largest unix timestamp that the data was written, similar to its sibling CQL function, writetime. - New Guardrails added: - - Whether ALTER TABLE commands are allowed to mutate columns - Whether SimpleStrategy is allowed on keyspace creation or alteration - Maximum replication factor - Whether DROP KEYSPACE commands are allowed. diff --git a/conf/cassandra.yaml b/conf/cassandra.yaml index 99dd449c84..456fe5528b 100644 --- a/conf/cassandra.yaml +++ b/conf/cassandra.yaml @@ -1994,6 +1994,10 @@ drop_compact_storage_enabled: false # Guardrail to allow/disallow DROP KEYSPACE statements # drop_keyspace_enabled: true # +# Guardrail to allow/disallow DDL/DCL statements +# ddl_enabled: true +# dcl_enabled: true +# # Guardrail to warn or fail when using a page size greater than threshold. # The two thresholds default to -1 to disable. # page_size_warn_threshold: -1 @@ -2095,9 +2099,6 @@ drop_compact_storage_enabled: false # vector_dimensions_warn_threshold: -1 # vector_dimensions_fail_threshold: -1 # -# Guardrail to indicate whether or not users are allowed to use ALTER TABLE commands to make column changes to tables -# alter_table_enabled: true -# # Guardrail to warn or fail when local data disk usage percentage exceeds threshold. Valid values are in [1, 100]. # This is only used for the disks storing data directories, so it won't count any separate disks used for storing # the commitlog, hints nor saved caches. The disk usage is the ratio between the amount of space used by the data diff --git a/conf/cassandra_latest.yaml b/conf/cassandra_latest.yaml index abac0d408c..d389c468fb 100644 --- a/conf/cassandra_latest.yaml +++ b/conf/cassandra_latest.yaml @@ -1974,6 +1974,10 @@ drop_compact_storage_enabled: false # Guardrail to allow/disallow DROP KEYSPACE statements # drop_keyspace_enabled: true # +# Guardrail to allow/disallow DDL/DCL statements +# ddl_enabled: true +# dcl_enabled: true +# # Guardrail to warn or fail when using a page size greater than threshold. # The two thresholds default to -1 to disable. # page_size_warn_threshold: -1 @@ -2075,9 +2079,6 @@ drop_compact_storage_enabled: false # vector_dimensions_warn_threshold: -1 # vector_dimensions_fail_threshold: -1 # -# Guardrail to indicate whether or not users are allowed to use ALTER TABLE commands to make column changes to tables -# alter_table_enabled: true -# # Guardrail to warn or fail when local data disk usage percentage exceeds threshold. Valid values are in [1, 100]. # This is only used for the disks storing data directories, so it won't count any separate disks used for storing # the commitlog, hints nor saved caches. The disk usage is the ratio between the amount of space used by the data diff --git a/src/java/org/apache/cassandra/config/Config.java b/src/java/org/apache/cassandra/config/Config.java index 30da524777..a4c58b0201 100644 --- a/src/java/org/apache/cassandra/config/Config.java +++ b/src/java/org/apache/cassandra/config/Config.java @@ -862,8 +862,9 @@ public class Config public volatile Set write_consistency_levels_warned = Collections.emptySet(); public volatile Set write_consistency_levels_disallowed = Collections.emptySet(); public volatile boolean user_timestamps_enabled = true; - public volatile boolean alter_table_enabled = true; public volatile boolean group_by_enabled = true; + public volatile boolean ddl_enabled = true; + public volatile boolean dcl_enabled = true; public volatile boolean drop_truncate_table_enabled = true; public volatile boolean drop_keyspace_enabled = true; public volatile boolean secondary_indexes_enabled = true; diff --git a/src/java/org/apache/cassandra/config/GuardrailsOptions.java b/src/java/org/apache/cassandra/config/GuardrailsOptions.java index 504384e0d0..9f8f383aa2 100644 --- a/src/java/org/apache/cassandra/config/GuardrailsOptions.java +++ b/src/java/org/apache/cassandra/config/GuardrailsOptions.java @@ -368,6 +368,34 @@ public class GuardrailsOptions implements GuardrailsConfig x -> config.drop_keyspace_enabled = x); } + @Override + public boolean getDDLEnabled() + { + return config.ddl_enabled; + } + + public void setDDLEnabled(boolean enabled) + { + updatePropertyWithLogging("ddl_enabled", + enabled, + () -> config.ddl_enabled, + x -> config.ddl_enabled = x); + } + + @Override + public boolean getDCLEnabled() + { + return config.dcl_enabled; + } + + public void setDCLEnabled(boolean enabled) + { + updatePropertyWithLogging("dcl_enabled", + enabled, + () -> config.dcl_enabled, + x -> config.dcl_enabled = x); + } + @Override public boolean getSecondaryIndexesEnabled() { @@ -410,20 +438,6 @@ public class GuardrailsOptions implements GuardrailsConfig x -> config.compact_tables_enabled = x); } - @Override - public boolean getAlterTableEnabled() - { - return config.alter_table_enabled; - } - - public void setAlterTableEnabled(boolean enabled) - { - updatePropertyWithLogging("alter_table_enabled", - enabled, - () -> config.alter_table_enabled, - x -> config.alter_table_enabled = x); - } - @Override public boolean getReadBeforeWriteListOperationsEnabled() { diff --git a/src/java/org/apache/cassandra/cql3/CQLStatement.java b/src/java/org/apache/cassandra/cql3/CQLStatement.java index e78f7332c3..f118645bfd 100644 --- a/src/java/org/apache/cassandra/cql3/CQLStatement.java +++ b/src/java/org/apache/cassandra/cql3/CQLStatement.java @@ -99,6 +99,16 @@ public interface CQLStatement return false; } + default boolean isDDLStatement() + { + return false; + } + + default boolean isDCLStatement() + { + return false; + } + public static abstract class Raw { protected VariableSpecifications bindVariables; diff --git a/src/java/org/apache/cassandra/cql3/QueryProcessor.java b/src/java/org/apache/cassandra/cql3/QueryProcessor.java index 15cfaa6c0f..7d186fd70f 100644 --- a/src/java/org/apache/cassandra/cql3/QueryProcessor.java +++ b/src/java/org/apache/cassandra/cql3/QueryProcessor.java @@ -38,6 +38,7 @@ import org.antlr.runtime.*; import org.apache.cassandra.concurrent.ImmediateExecutor; import org.apache.cassandra.concurrent.ScheduledExecutors; import org.apache.cassandra.config.DatabaseDescriptor; +import org.apache.cassandra.db.guardrails.Guardrails; import org.apache.cassandra.db.partitions.UnfilteredPartitionIterators; import org.apache.cassandra.locator.InetAddressAndPort; import org.apache.cassandra.metrics.ClientRequestMetrics; @@ -251,6 +252,11 @@ public class QueryProcessor implements QueryHandler statement.authorize(clientState); statement.validate(clientState); + if (statement.isDDLStatement()) + Guardrails.ddlEnabled.ensureEnabled(clientState); + else if (statement.isDCLStatement()) + Guardrails.dclEnabled.ensureEnabled(clientState); + ResultMessage result = options.getConsistency() == ConsistencyLevel.NODE_LOCAL ? processNodeLocalStatement(statement, queryState, options) : statement.execute(queryState, options, queryStartNanoTime); diff --git a/src/java/org/apache/cassandra/cql3/statements/AuthenticationStatement.java b/src/java/org/apache/cassandra/cql3/statements/AuthenticationStatement.java index db3aa99273..04b7faad5a 100644 --- a/src/java/org/apache/cassandra/cql3/statements/AuthenticationStatement.java +++ b/src/java/org/apache/cassandra/cql3/statements/AuthenticationStatement.java @@ -68,5 +68,11 @@ public abstract class AuthenticationStatement extends CQLStatement.Raw implement { return query; } + + @Override + public boolean isDCLStatement() + { + return true; + } } diff --git a/src/java/org/apache/cassandra/cql3/statements/AuthorizationStatement.java b/src/java/org/apache/cassandra/cql3/statements/AuthorizationStatement.java index 46285c6730..c57995093c 100644 --- a/src/java/org/apache/cassandra/cql3/statements/AuthorizationStatement.java +++ b/src/java/org/apache/cassandra/cql3/statements/AuthorizationStatement.java @@ -67,4 +67,10 @@ public abstract class AuthorizationStatement extends CQLStatement.Raw implements { return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE); } + + @Override + public boolean isDCLStatement() + { + return true; + } } diff --git a/src/java/org/apache/cassandra/cql3/statements/schema/AlterSchemaStatement.java b/src/java/org/apache/cassandra/cql3/statements/schema/AlterSchemaStatement.java index a539ea74e8..b796f9e72a 100644 --- a/src/java/org/apache/cassandra/cql3/statements/schema/AlterSchemaStatement.java +++ b/src/java/org/apache/cassandra/cql3/statements/schema/AlterSchemaStatement.java @@ -47,6 +47,12 @@ abstract public class AlterSchemaStatement implements CQLStatement.SingleKeyspac this.keyspaceName = keyspaceName; } + @Override + public boolean isDDLStatement() + { + return true; + } + public void validate(ClientState state) { // validation is performed while executing the statement, in apply() diff --git a/src/java/org/apache/cassandra/cql3/statements/schema/AlterTableStatement.java b/src/java/org/apache/cassandra/cql3/statements/schema/AlterTableStatement.java index fc0b4cffe6..4f04a5c9ce 100644 --- a/src/java/org/apache/cassandra/cql3/statements/schema/AlterTableStatement.java +++ b/src/java/org/apache/cassandra/cql3/statements/schema/AlterTableStatement.java @@ -276,7 +276,6 @@ public abstract class AlterTableStatement extends AlterSchemaStatement public KeyspaceMetadata apply(KeyspaceMetadata keyspace, TableMetadata table) { - Guardrails.alterTableEnabled.ensureEnabled("ALTER TABLE changing columns", state); TableMetadata.Builder tableBuilder = table.unbuild(); Views.Builder viewsBuilder = keyspace.views.unbuild(); newColumns.forEach(c -> addColumn(keyspace, table, c, ifColumnNotExists, tableBuilder, viewsBuilder)); @@ -381,7 +380,6 @@ public abstract class AlterTableStatement extends AlterSchemaStatement public KeyspaceMetadata apply(KeyspaceMetadata keyspace, TableMetadata table) { - Guardrails.alterTableEnabled.ensureEnabled("ALTER TABLE changing columns", state); TableMetadata.Builder builder = table.unbuild(); removedColumns.forEach(c -> dropColumn(keyspace, table, c, ifColumnExists, builder)); return keyspace.withSwapped(keyspace.tables.withSwapped(builder.build())); @@ -449,7 +447,6 @@ public abstract class AlterTableStatement extends AlterSchemaStatement public KeyspaceMetadata apply(KeyspaceMetadata keyspace, TableMetadata table) { - Guardrails.alterTableEnabled.ensureEnabled("ALTER TABLE changing columns", state); TableMetadata.Builder tableBuilder = table.unbuild(); Views.Builder viewsBuilder = keyspace.views.unbuild(); renamedColumns.forEach((o, n) -> renameColumn(keyspace, table, o, n, ifColumnsExists, tableBuilder, viewsBuilder)); diff --git a/src/java/org/apache/cassandra/db/guardrails/Guardrails.java b/src/java/org/apache/cassandra/db/guardrails/Guardrails.java index f61ae204d1..42c8268f9a 100644 --- a/src/java/org/apache/cassandra/db/guardrails/Guardrails.java +++ b/src/java/org/apache/cassandra/db/guardrails/Guardrails.java @@ -157,15 +157,6 @@ public final class Guardrails implements GuardrailsMBean state -> CONFIG_PROVIDER.getOrCreate(state).getGroupByEnabled(), "GROUP BY functionality"); - /** - * Guardrail disabling ALTER TABLE column mutation access. - */ - public static final EnableFlag alterTableEnabled = - new EnableFlag("alter_table", - null, - state -> CONFIG_PROVIDER.getOrCreate(state).getAlterTableEnabled(), - "User access to ALTER TABLE statement for column mutation"); - /** * Guardrail disabling DROP / TRUNCATE TABLE behavior */ @@ -184,6 +175,24 @@ public final class Guardrails implements GuardrailsMBean state -> CONFIG_PROVIDER.getOrCreate(state).getDropKeyspaceEnabled(), "DROP KEYSPACE functionality"); + /** + * Guardrail disabling DDL statements + */ + public static final EnableFlag ddlEnabled = + new EnableFlag("ddl_enabled", + null, + state -> CONFIG_PROVIDER.getOrCreate(state).getDDLEnabled(), + "DDL statement"); + + /** + * Guardrail disabling DCL statements + */ + public static final EnableFlag dclEnabled = + new EnableFlag("dcl_enabled", + null, + state -> CONFIG_PROVIDER.getOrCreate(state).getDCLEnabled(), + "DCL statement"); + /** * Guardrail disabling user's ability to turn off compression */ @@ -749,18 +758,6 @@ public final class Guardrails implements GuardrailsMBean DEFAULT_CONFIG.setUserTimestampsEnabled(enabled); } - @Override - public boolean getAlterTableEnabled() - { - return DEFAULT_CONFIG.getAlterTableEnabled(); - } - - @Override - public void setAlterTableEnabled(boolean enabled) - { - DEFAULT_CONFIG.setAlterTableEnabled(enabled); - } - @Override public boolean getAllowFilteringEnabled() { @@ -845,6 +842,30 @@ public final class Guardrails implements GuardrailsMBean DEFAULT_CONFIG.setDropKeyspaceEnabled(enabled); } + @Override + public boolean getDDLEnabled() + { + return DEFAULT_CONFIG.getDDLEnabled(); + } + + @Override + public void setDDLEnabled(boolean enabled) + { + DEFAULT_CONFIG.setDDLEnabled(enabled); + } + + @Override + public boolean getDCLEnabled() + { + return DEFAULT_CONFIG.getDCLEnabled(); + } + + @Override + public void setDCLEnabled(boolean enabled) + { + DEFAULT_CONFIG.setDCLEnabled(enabled); + } + @Override public int getPageSizeWarnThreshold() { diff --git a/src/java/org/apache/cassandra/db/guardrails/GuardrailsConfig.java b/src/java/org/apache/cassandra/db/guardrails/GuardrailsConfig.java index 508ae53fc0..29f8dd3faf 100644 --- a/src/java/org/apache/cassandra/db/guardrails/GuardrailsConfig.java +++ b/src/java/org/apache/cassandra/db/guardrails/GuardrailsConfig.java @@ -133,13 +133,6 @@ public interface GuardrailsConfig */ boolean getUserTimestampsEnabled(); - /** - * Returns whether users are allowed access to the ALTER TABLE statement to mutate columns or not - * - * @return {@code true} if ALTER TABLE ADD/REMOVE/RENAME is allowed, {@code false} otherwise. - */ - boolean getAlterTableEnabled(); - /** * Returns whether tables can be uncompressed * @@ -175,6 +168,20 @@ public interface GuardrailsConfig */ boolean getDropKeyspaceEnabled(); + /** + * Returns whether DDL statement is allowed + * + * @return {@code true} if allowed, {@code false} otherwise. + */ + boolean getDDLEnabled(); + + /** + * Returns whether DCL statement is allowed + * + * @return {@code true} if allowed, {@code false} otherwise. + */ + boolean getDCLEnabled(); + /** * @return The threshold to warn when page size exceeds given size. */ diff --git a/src/java/org/apache/cassandra/db/guardrails/GuardrailsMBean.java b/src/java/org/apache/cassandra/db/guardrails/GuardrailsMBean.java index 9a3750bba8..89b1da4d6b 100644 --- a/src/java/org/apache/cassandra/db/guardrails/GuardrailsMBean.java +++ b/src/java/org/apache/cassandra/db/guardrails/GuardrailsMBean.java @@ -264,20 +264,6 @@ public interface GuardrailsMBean */ void setCompactTablesEnabled(boolean enabled); - /** - * Gets whether users can use the ALTER TABLE statement to change columns - * - * @return {@code true} if ALTER TABLE is allowed, {@code false} otherwise. - */ - boolean getAlterTableEnabled(); - - /** - * Sets whether users can use the ALTER TABLE statement to change columns - * - * @param enabled {@code true} if changing columns is allowed, {@code false} otherwise. - */ - void setAlterTableEnabled(boolean enabled); - /** * Returns whether GROUP BY queries are allowed. * @@ -316,6 +302,30 @@ public interface GuardrailsMBean */ void setDropKeyspaceEnabled(boolean enabled); + /** + * Returns whether DDL statement is allowed + * + * @return {@code true} if allowed, {@code false} otherwise. + */ + boolean getDDLEnabled(); + + /** + * Sets whether DDL statement is allowed + */ + void setDDLEnabled(boolean enabled); + + /** + * Returns whether DCL statement is allowed + * + * @return {@code true} if allowed, {@code false} otherwise. + */ + boolean getDCLEnabled(); + + /** + * Sets whether DCL statement is allowed + */ + void setDCLEnabled(boolean enabled); + /** * @return The threshold to warn when requested page size greater than threshold. * -1 means disabled. diff --git a/test/data/config/version=5.0-alpha1.yml b/test/data/config/version=5.0-alpha1.yml index 01a5f90ea6..4d686a61c4 100644 --- a/test/data/config/version=5.0-alpha1.yml +++ b/test/data/config/version=5.0-alpha1.yml @@ -52,7 +52,8 @@ roles_validity: "org.apache.cassandra.config.DurationSpec.IntMillisecondsBound" coordinator_read_size_warn_threshold: "org.apache.cassandra.config.DataStorageSpec.LongBytesBound" scripted_user_defined_functions_enabled: "java.lang.Boolean" auth_cache_warming_enabled: "java.lang.Boolean" -alter_table_enabled: "java.lang.Boolean" +ddl_enabled: "java.lang.Boolean" +dcl_enabled: "java.lang.Boolean" client_request_size_metrics_enabled: "java.lang.Boolean" cdc_on_repair_enabled: "java.lang.Boolean" entire_sstable_stream_throughput_outbound: "org.apache.cassandra.config.DataRateSpec.LongBytesPerSecondBound" diff --git a/test/unit/org/apache/cassandra/db/guardrails/GuardrailAlterTableTest.java b/test/unit/org/apache/cassandra/db/guardrails/GuardrailAlterTableTest.java index 1aa7095e19..eb4aff3b25 100644 --- a/test/unit/org/apache/cassandra/db/guardrails/GuardrailAlterTableTest.java +++ b/test/unit/org/apache/cassandra/db/guardrails/GuardrailAlterTableTest.java @@ -22,25 +22,33 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import com.datastax.driver.core.exceptions.InvalidQueryException; + +import static org.assertj.core.api.Assertions.assertThatThrownBy; /** - * Tests the guardrail for disabling user access to the ALTER TABLE statement, {@link Guardrails#alterTableEnabled}. - * + * Tests the guardrail for disabling user access to the ALTER TABLE statement, {@link Guardrails#ddlEnabled}. + *

* NOTE: This test class depends on {@link #currentTable()} method for setup, cleanup, and execution of tests. You'll * need to refactor this if you add tests that make changes to the current table as the test teardown will no longer match * setup. + *

+ * This test is a leftover from CASSANDRA-17495 which was accommodated for the purposes of CASSANDRA-19556. */ public class GuardrailAlterTableTest extends GuardrailTester { + private static final String DDL_ERROR_MSG = "DDL statement is not allowed"; + public GuardrailAlterTableTest() { - super(Guardrails.alterTableEnabled); + super(Guardrails.ddlEnabled); } @Before public void setupTest() throws Throwable { createTable("CREATE TABLE IF NOT EXISTS %s (k INT, c INT, v TEXT, PRIMARY KEY(k, c))"); + super.beforeGuardrailTest(); } @After @@ -52,82 +60,60 @@ public class GuardrailAlterTableTest extends GuardrailTester private void setGuardrail(boolean alterTableEnabled) { - guardrails().setAlterTableEnabled(alterTableEnabled); + guardrails().setDDLEnabled(alterTableEnabled); } /** * Confirm that ALTER TABLE queries either work (guardrail enabled) or fail (guardrail disabled) appropriately - * @throws Throwable */ @Test - public void testGuardrailEnabledAndDisabled() throws Throwable + public void testGuardrailEnabledAndDisabled() { setGuardrail(false); - assertFails("ALTER TABLE %s ADD test_one text;", "changing columns"); + assertFailQuery("ALTER TABLE %s ADD test_one text"); setGuardrail(true); - assertValid("ALTER TABLE %s ADD test_two text;"); + executeNet("ALTER TABLE %s ADD test_two text;"); setGuardrail(false); - assertFails("ALTER TABLE %s ADD test_three text;", "changing columns"); + assertFailQuery("ALTER TABLE %s ADD test_three text"); } /** * Confirm the guardrail appropriately catches the ALTER DROP case on a column - * @throws Throwable */ @Test - public void testAppliesToAlterDropColumn() throws Throwable + public void testAppliesToAlterDropColumn() { setGuardrail(true); - assertValid("ALTER TABLE %s ADD test_one text;"); + executeNet("ALTER TABLE %s ADD test_one text;"); setGuardrail(false); - assertFails("ALTER TABLE %s DROP test_one", "changing columns"); + assertFailQuery("ALTER TABLE %s DROP test_one"); setGuardrail(true); - assertValid("ALTER TABLE %s DROP test_one"); + executeNet("ALTER TABLE %s DROP test_one"); } /** * Confirm the guardrail appropriately catches the ALTER RENAME case on a column - * @throws Throwable */ @Test - public void testAppliesToAlterRenameColumn() throws Throwable + public void testAppliesToAlterRenameColumn() { setGuardrail(false); - assertFails("ALTER TABLE %s RENAME c TO renamed_c", "changing columns"); + + setGuardrail(false); + assertFailQuery("ALTER TABLE %s RENAME c TO renamed_c"); setGuardrail(true); - assertValid("ALTER TABLE %s RENAME c TO renamed_c"); + executeNet("ALTER TABLE %s RENAME c TO renamed_c"); } - /** - * Confirm we can always alter properties via the options map regardless of guardrail state - * @throws Throwable - */ - @Test - public void testAlterViaMapAlwaysWorks() throws Throwable + private void assertFailQuery(String query) { - setGuardrail(false); - assertValid("ALTER TABLE %s WITH compression = { 'class' : 'SnappyCompressor', 'chunk_length_in_kb' : 32 };"); - - setGuardrail(true); - assertValid("ALTER TABLE %s WITH compression = { 'class' : 'SnappyCompressor', 'chunk_length_in_kb' : 32 };"); - } - - /** - * Confirm the other form of ALTER TABLE property map changing always works regardless of guardrail state - * @throws Throwable - */ - @Test - public void testAlterOptionsAlwaysWorks() throws Throwable - { - setGuardrail(true); - assertValid("ALTER TABLE %s WITH GC_GRACE_SECONDS = 456; "); - - setGuardrail(false); - assertValid("ALTER TABLE %s WITH GC_GRACE_SECONDS = 123; "); + assertThatThrownBy(() -> executeNet(query)) + .isInstanceOf(InvalidQueryException.class) + .hasMessageContaining(DDL_ERROR_MSG); } } diff --git a/test/unit/org/apache/cassandra/db/guardrails/GuardrailDCLEnabledTest.java b/test/unit/org/apache/cassandra/db/guardrails/GuardrailDCLEnabledTest.java new file mode 100644 index 0000000000..41007b4f8c --- /dev/null +++ b/test/unit/org/apache/cassandra/db/guardrails/GuardrailDCLEnabledTest.java @@ -0,0 +1,210 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.cassandra.db.guardrails; + +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +import com.datastax.driver.core.exceptions.InvalidQueryException; +import org.apache.cassandra.cql3.QueryOptions; +import org.apache.cassandra.cql3.QueryProcessor; +import org.apache.cassandra.cql3.statements.AuthenticationStatement; +import org.apache.cassandra.cql3.statements.AuthorizationStatement; +import org.apache.cassandra.service.QueryState; + +import static java.lang.String.format; +import static org.assertj.core.api.Assertions.assertThatThrownBy; +import static org.mockito.Mockito.doCallRealMethod; +import static org.mockito.Mockito.doReturn; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.verify; + +public class GuardrailDCLEnabledTest extends GuardrailTester +{ + private static final String DCL_ERROR_MSG = "DCL statement is not allowed"; + private static final String DCL_TEST_NEW_USER = "dcltest"; + + private void setGuardrail(boolean enabled) + { + Guardrails.instance.setDCLEnabled(enabled); + } + + @Before + public void beforeGuardrailTest() throws Throwable + { + super.beforeGuardrailTest(); + useSuperUser(); + // need permission on roles to test dcl queries + executeNet(format("GRANT ALL ON ALL ROLES TO %s", USERNAME)); + useUser(USERNAME, PASSWORD); + createTable(KEYSPACE, "CREATE TABLE IF NOT EXISTS %s (k INT, c INT, v TEXT, PRIMARY KEY(k, c))"); + } + + @After + public void afterTest() + { + setGuardrail(true); + executeNet(dropRole(DCL_TEST_NEW_USER)); + dropTable("DROP TABLE IF EXISTS %s"); + } + + @Test + public void testCannotCreateRoleWhileFeatureDisabled() throws Throwable + { + setGuardrail(false); + shouldFailWithDCLErrorMsg(getCreateRoleCQL(DCL_TEST_NEW_USER)); + // no role is created + assertEmpty(execute(format("SELECT * FROM system_auth.roles WHERE role='%s'", + DCL_TEST_NEW_USER))); + + setGuardrail(true); + executeNet(getCreateRoleCQL(DCL_TEST_NEW_USER)); + // role is created + assertRowCount(execute(format("SELECT * FROM system_auth.roles WHERE role='%s'", + DCL_TEST_NEW_USER)), + 1); + } + + @Test + public void testCannotDropRoleWhileFeatureDisabled() throws Throwable + { + executeNet(getCreateRoleCQL(DCL_TEST_NEW_USER)); + setGuardrail(false); + shouldFailWithDCLErrorMsg(dropRole(DCL_TEST_NEW_USER)); + // role is not dropped + assertRowCount(execute(format("SELECT * FROM system_auth.roles WHERE role='%s'", + DCL_TEST_NEW_USER)), + 1); + + setGuardrail(true); + executeNet(dropRole(DCL_TEST_NEW_USER)); + // role is dropped + assertEmpty(execute(format("SELECT * FROM system_auth.roles WHERE role='%s'", + DCL_TEST_NEW_USER))); + } + + @Test + public void testCannotListRoleWhileFeatureDisabled() + { + setGuardrail(false); + shouldFailWithDCLErrorMsg("LIST ROLES"); + shouldFailWithDCLErrorMsg(format("LIST ALL PERMISSIONS OF %s", USERNAME)); + shouldFailWithDCLErrorMsg("LIST USERS"); + + setGuardrail(true); + executeNet("LIST ROLES"); + executeNet(format("LIST ALL PERMISSIONS OF %s", USERNAME)); + executeNet("LIST USERS"); + } + + @Test + public void testCannotGrantPermissionWhileFeatureDisabled() throws Throwable + { + executeNet(getCreateRoleCQL(DCL_TEST_NEW_USER)); + + setGuardrail(false); + shouldFailWithDCLErrorMsg(getGrantPermissionCQL(DCL_TEST_NEW_USER, KEYSPACE, currentTable())); + // DCL_TEST_NEW_USER doesn't get permission + assertEmpty(execute(format("SELECT * FROM system_auth.role_permissions WHERE role='%s' AND resource='data/%s/%s'", + DCL_TEST_NEW_USER, KEYSPACE, currentTable()))); + + setGuardrail(true); + executeNet(getGrantPermissionCQL(DCL_TEST_NEW_USER, KEYSPACE, currentTable())); + assertRowCount(execute(format("SELECT * FROM system_auth.role_permissions WHERE role='%s' AND resource='data/%s/%s'", + DCL_TEST_NEW_USER, KEYSPACE, currentTable())), + 1); + } + + @Test + public void testCannotRevokePermissionWhileFeatureDisabled() throws Throwable + { + executeNet(getCreateRoleCQL(DCL_TEST_NEW_USER)); + executeNet(getGrantPermissionCQL(DCL_TEST_NEW_USER, KEYSPACE, currentTable())); + + setGuardrail(false); + shouldFailWithDCLErrorMsg(getRevokePermissionCQL(DCL_TEST_NEW_USER, KEYSPACE, currentTable())); + // DCL_TEST_NEW_USER permission wasn't revoked on KEYSPACE + assertRowCount(execute(format("SELECT * FROM system_auth.role_permissions WHERE role='%s' AND resource='data/%s/%s'", + DCL_TEST_NEW_USER, KEYSPACE, currentTable())), + 1); + + setGuardrail(true); + executeNet(getRevokePermissionCQL(DCL_TEST_NEW_USER, KEYSPACE, currentTable())); + assertEmpty(execute(format("SELECT * FROM system_auth.role_permissions WHERE role='%s' AND resource='data/%s/%s'", + DCL_TEST_NEW_USER, KEYSPACE, currentTable()))); + } + + @Test + public void testMockDCLStatementsWhileFeaturesDisabled() + { + AuthorizationStatement authorizationStatement = mock(AuthorizationStatement.class); + AuthenticationStatement authenticationStatement = mock(AuthenticationStatement.class); + QueryState queryState = mock(QueryState.class); + + doReturn(userClientState).when(queryState).getClientState(); + doCallRealMethod().when(authorizationStatement).isDCLStatement(); + doCallRealMethod().when(authenticationStatement).isDCLStatement(); + QueryProcessor qp = QueryProcessor.instance; + + setGuardrail(false); + + assertThatThrownBy(() -> qp.processStatement(authorizationStatement, queryState, QueryOptions.DEFAULT, 0L)) + .isInstanceOf(GuardrailViolatedException.class); + + verify(authorizationStatement).isDCLStatement(); + + assertThatThrownBy(() -> qp.processStatement(authenticationStatement, queryState, QueryOptions.DEFAULT, 0L)) + .isInstanceOf(GuardrailViolatedException.class); + + verify(authenticationStatement).isDCLStatement(); + + setGuardrail(true); + qp.processStatement(authorizationStatement, queryState, QueryOptions.DEFAULT, 0L); + qp.processStatement(authenticationStatement, queryState, QueryOptions.DEFAULT, 0L); + } + + private void shouldFailWithDCLErrorMsg(String query) + { + assertThatThrownBy(() -> executeNet(query)) + .isInstanceOf(InvalidQueryException.class) + .hasMessageContaining(DCL_ERROR_MSG); + } + + private static String getCreateRoleCQL(String role) + { + return format("CREATE ROLE IF NOT EXISTS %s WITH PASSWORD = 'test'", + role); + } + + private static String getGrantPermissionCQL(String role, String ks, String tbl) + { + return format("GRANT ALL PERMISSIONS ON %s.%s TO %s;", ks, tbl, role); + } + + private static String getRevokePermissionCQL(String role, String ks, String tbl) + { + return format("REVOKE ALL ON %s.%s FROM %s;", ks, tbl, role); + } + + private static String dropRole(String role) + { + return format("DROP ROLE IF EXISTS %s", role); + } +} diff --git a/test/unit/org/apache/cassandra/db/guardrails/GuardrailDDLEnabledTest.java b/test/unit/org/apache/cassandra/db/guardrails/GuardrailDDLEnabledTest.java new file mode 100644 index 0000000000..b5450fb38d --- /dev/null +++ b/test/unit/org/apache/cassandra/db/guardrails/GuardrailDDLEnabledTest.java @@ -0,0 +1,338 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.cassandra.db.guardrails; + +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +import com.datastax.driver.core.exceptions.InvalidQueryException; +import org.apache.cassandra.cql3.QueryOptions; +import org.apache.cassandra.cql3.QueryProcessor; +import org.apache.cassandra.cql3.statements.schema.AlterSchemaStatement; +import org.apache.cassandra.schema.SchemaConstants; +import org.apache.cassandra.schema.SchemaKeyspaceTables; +import org.apache.cassandra.service.QueryState; + +import static java.lang.String.format; +import static org.assertj.core.api.Assertions.assertThatThrownBy; +import static org.mockito.Mockito.doCallRealMethod; +import static org.mockito.Mockito.doReturn; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.verify; + +public class GuardrailDDLEnabledTest extends GuardrailTester +{ + private static final String TEST_KS = "ddlks"; + private static final String TEST_TABLE = "ddltbl"; + private static final String TEST_VIEW = "ddlview"; + private static final String DDL_ERROR_MSG = "DDL statement is not allowed"; + + private void setGuardrail(boolean enabled) + { + Guardrails.instance.setDDLEnabled(enabled); + } + + @Before + public void beforeGuardrailTest() throws Throwable + { + super.beforeGuardrailTest(); + // grant current user permission to all keyspaces + useSuperUser(); + executeNet(format("GRANT ALL ON ALL KEYSPACES TO %s", USERNAME)); + useUser(USERNAME, PASSWORD); + } + + @After + public void afterTest() + { + setGuardrail(true); + executeNet(getDropViewCQL(TEST_KS, TEST_VIEW)); + executeNet(getDropKeyspaceCQL(TEST_KS)); + } + + @Test + public void testCannotCreateKeyspaceWhileFeatureDisabled() throws Throwable + { + setGuardrail(false); + shouldFailWithDDLErrorMsg(getCreateKeyspaceCQL(TEST_KS)); + // No new keyspace should be created + assertEmpty(execute(getSystemSchemaKeyspaceCQL(TEST_KS))); + + setGuardrail(true); + executeNet(getCreateKeyspaceCQL(TEST_KS)); + assertRowCount(execute(getSystemSchemaKeyspaceCQL(TEST_KS)), 1); + } + + @Test + public void testCannotCreateTableWhileFeatureDisabled() throws Throwable + { + executeNet(getCreateKeyspaceCQL(TEST_KS)); + + setGuardrail(false); + shouldFailWithDDLErrorMsg(getCreateTableCQL(TEST_KS, TEST_TABLE)); + // No new table should be created + assertEmpty(execute(getSystemSchemaTableCQL(TEST_KS, TEST_TABLE))); + + setGuardrail(true); + executeNet(getCreateTableCQL(TEST_KS, TEST_TABLE)); + assertRowCount(execute(getSystemSchemaTableCQL(TEST_KS, TEST_TABLE)), 1); + } + + @Test + public void testCannotCreateViewWhileFeatureDisabled() throws Throwable + { + executeNet(getCreateKeyspaceCQL(TEST_KS)); + executeNet(getCreateTableCQL(TEST_KS, TEST_TABLE)); + + setGuardrail(false); + shouldFailWithDDLErrorMsg(getCreateViewCQL(TEST_KS, TEST_VIEW)); + // No new view should be created + assertEmpty(execute(getSystemSchemaViewCQL(TEST_KS, TEST_VIEW))); + + setGuardrail(true); + executeNet(getCreateViewCQL(TEST_KS, TEST_VIEW)); + assertRowCount(execute(getSystemSchemaViewCQL(TEST_KS, TEST_VIEW)), 1); + } + + @Test + public void testCannotDropKeyspaceWhileFeatureDisabled() throws Throwable + { + executeNet(getCreateKeyspaceCQL(TEST_KS)); + + setGuardrail(false); + shouldFailWithDDLErrorMsg(getDropKeyspaceCQL(TEST_KS)); + assertRowCount(execute(getSystemSchemaKeyspaceCQL(TEST_KS)), 1); + + setGuardrail(true); + executeNet(getDropKeyspaceCQL(TEST_KS)); + assertEmpty(execute(getSystemSchemaKeyspaceCQL(TEST_KS))); + } + + @Test + public void testCannotDropTableWhileFeatureDisabled() throws Throwable + { + executeNet(getCreateKeyspaceCQL(TEST_KS)); + executeNet(getCreateTableCQL(TEST_KS, TEST_TABLE)); + + setGuardrail(false); + shouldFailWithDDLErrorMsg(getDropTableCQL(TEST_KS, TEST_TABLE)); + assertRowCount(execute(getSystemSchemaTableCQL(TEST_KS, TEST_TABLE)), 1); + + setGuardrail(true); + executeNet(getDropTableCQL(TEST_KS, TEST_TABLE)); + assertEmpty(execute(getSystemSchemaTableCQL(TEST_KS, TEST_TABLE))); + } + + @Test + public void testCannotDropViewWhileFeatureDisabled() throws Throwable + { + executeNet(getCreateKeyspaceCQL(TEST_KS)); + executeNet(getCreateTableCQL(TEST_KS, TEST_TABLE)); + executeNet(getCreateViewCQL(TEST_KS, TEST_VIEW)); + + setGuardrail(false); + shouldFailWithDDLErrorMsg(getDropViewCQL(TEST_KS, TEST_VIEW)); + assertRowCount(execute(getSystemSchemaViewCQL(TEST_KS, TEST_VIEW)), 1); + + setGuardrail(true); + executeNet(getDropViewCQL(TEST_KS, TEST_VIEW)); + assertEmpty(execute(getSystemSchemaViewCQL(TEST_KS, TEST_VIEW))); + } + + @Test + public void testCannotDropColumnWhileFeatureDisabled() throws Throwable + { + executeNet(getCreateKeyspaceCQL(TEST_KS)); + executeNet(getCreateTableCQL(TEST_KS, TEST_TABLE)); + setGuardrail(false); + // table have column col1 + assertRowCount(execute(format("SELECT * FROM %s.%s WHERE keyspace_name='%s' AND table_name='%s' AND column_name='col1'", + SchemaConstants.SCHEMA_KEYSPACE_NAME, + SchemaKeyspaceTables.COLUMNS, + TEST_KS, + TEST_TABLE)), 1); + shouldFailWithDDLErrorMsg(format("ALTER TABLE %s.%s DROP IF EXISTS col1", TEST_KS, TEST_TABLE)); + // column col1 should not be dropped + assertRowCount(execute(format("SELECT * FROM %s.%s WHERE keyspace_name='%s' AND table_name='%s' AND column_name='col1'", + SchemaConstants.SCHEMA_KEYSPACE_NAME, + SchemaKeyspaceTables.COLUMNS, + TEST_KS, + TEST_TABLE)), 1); + + setGuardrail(true); + executeNet(format("ALTER TABLE %s.%s DROP IF EXISTS col1", TEST_KS, TEST_TABLE)); + assertEmpty(execute(format("SELECT * FROM %s.%s WHERE keyspace_name='%s' AND table_name='%s' AND column_name='col1'", + SchemaConstants.SCHEMA_KEYSPACE_NAME, + SchemaKeyspaceTables.COLUMNS, + TEST_KS, + TEST_TABLE))); + } + + @Test + public void testCannotAlterKeyspaceWhileFeatureDisabled() throws Throwable + { + executeNet(getCreateKeyspaceCQL(TEST_KS)); + setGuardrail(false); + // keyspace should have durable_write=true by default + assertEmpty(execute(format("SELECT * FROM %s.%s WHERE keyspace_name='%s' AND durable_writes=false ALLOW FILTERING", + SchemaConstants.SCHEMA_KEYSPACE_NAME, + SchemaKeyspaceTables.KEYSPACES, + TEST_KS))); + shouldFailWithDDLErrorMsg(format("ALTER KEYSPACE %s WITH durable_writes=false", TEST_KS)); + // keyspace should still have durable_write=true + assertEmpty(execute(format("SELECT * FROM %s.%s WHERE keyspace_name='%s' AND durable_writes=false ALLOW FILTERING", + SchemaConstants.SCHEMA_KEYSPACE_NAME, + SchemaKeyspaceTables.KEYSPACES, + TEST_KS))); + + setGuardrail(true); + executeNet(format("ALTER KEYSPACE %s WITH durable_writes=false", TEST_KS)); + assertRowCount(execute(format("SELECT * FROM %s.%s WHERE keyspace_name='%s' AND durable_writes=false ALLOW FILTERING", + SchemaConstants.SCHEMA_KEYSPACE_NAME, + SchemaKeyspaceTables.KEYSPACES, + TEST_KS)), 1); + } + + @Test + public void testCannotAlterTableWhileFeatureDisabled() throws Throwable + { + executeNet(getCreateKeyspaceCQL(TEST_KS)); + executeNet(getCreateTableCQL(TEST_KS, TEST_TABLE)); + setGuardrail(false); + // table doesn't have comment + assertEmpty(execute(format("SELECT * FROM %s.%s WHERE keyspace_name='%s' AND table_name='%s' AND comment='test' ALLOW FILTERING", + SchemaConstants.SCHEMA_KEYSPACE_NAME, + SchemaKeyspaceTables.TABLES, + TEST_KS, TEST_TABLE))); + shouldFailWithDDLErrorMsg(format("ALTER TABLE %s.%s WITH comment='test'", TEST_KS, TEST_TABLE)); + // table should not have comment + assertEmpty(execute(format("SELECT * FROM %s.%s WHERE keyspace_name='%s' AND table_name='%s' AND comment='test' ALLOW FILTERING", + SchemaConstants.SCHEMA_KEYSPACE_NAME, + SchemaKeyspaceTables.TABLES, + TEST_KS, TEST_TABLE))); + + setGuardrail(true); + executeNet(format("ALTER TABLE %s.%s WITH comment='test'", TEST_KS, TEST_TABLE)); + assertRowCount(execute(format("SELECT * FROM %s.%s WHERE keyspace_name='%s' AND table_name='%s' AND comment='test' ALLOW FILTERING", + SchemaConstants.SCHEMA_KEYSPACE_NAME, + SchemaKeyspaceTables.TABLES, + TEST_KS, TEST_TABLE)), 1); + } + + @Test + public void testCannotAddColumnWhileFeatureDisabled() throws Throwable + { + executeNet(getCreateKeyspaceCQL(TEST_KS)); + executeNet(getCreateTableCQL(TEST_KS, TEST_TABLE)); + setGuardrail(false); + // table doesn't have new column col3 + assertEmpty(execute(format("SELECT * FROM %s.%s WHERE keyspace_name='%s' AND table_name='%s' AND column_name='col3'", + SchemaConstants.SCHEMA_KEYSPACE_NAME, + SchemaKeyspaceTables.COLUMNS, + TEST_KS, TEST_TABLE))); + shouldFailWithDDLErrorMsg(format("ALTER TABLE %s.%s ADD col3 text", TEST_KS, TEST_TABLE)); + // table should not have new column col3 + assertEmpty(execute(format("SELECT * FROM %s.%s WHERE keyspace_name='%s' AND table_name='%s' AND column_name='col3'", + SchemaConstants.SCHEMA_KEYSPACE_NAME, + SchemaKeyspaceTables.COLUMNS, + TEST_KS, TEST_TABLE))); + + setGuardrail(true); + executeNet(format("ALTER TABLE %s.%s ADD col3 text", TEST_KS, TEST_TABLE)); + // table should not have new column col3 + assertRowCount(execute(format("SELECT * FROM %s.%s WHERE keyspace_name='%s' AND table_name='%s' AND column_name='col3'", + SchemaConstants.SCHEMA_KEYSPACE_NAME, + SchemaKeyspaceTables.COLUMNS, + TEST_KS, TEST_TABLE)), 1); + } + + @Test + public void testMockAlterSchemaStatementsWhileFeaturesDisabled() + { + AlterSchemaStatement alterSchemaStatement = mock(AlterSchemaStatement.class); + QueryState queryState = mock(QueryState.class); + + doReturn(userClientState).when(queryState).getClientState(); + doCallRealMethod().when(alterSchemaStatement).isDDLStatement(); + QueryProcessor qp = QueryProcessor.instance; + + setGuardrail(false); + + assertThatThrownBy(() -> qp.processStatement(alterSchemaStatement, queryState, QueryOptions.DEFAULT, 0L)) + .isInstanceOf(GuardrailViolatedException.class); + + verify(alterSchemaStatement).isDDLStatement(); + + setGuardrail(true); + qp.processStatement(alterSchemaStatement, queryState, QueryOptions.DEFAULT, 0L); + } + + private void shouldFailWithDDLErrorMsg(String query) + { + assertThatThrownBy(() -> executeNet(query)) + .isInstanceOf(InvalidQueryException.class) + .hasMessageContaining(DDL_ERROR_MSG); + } + + private String getCreateKeyspaceCQL(String ks) + { + return format("CREATE KEYSPACE IF NOT EXISTS %s WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'}", ks); + } + + private String getDropKeyspaceCQL(String ks) + { + return format("DROP KEYSPACE IF EXISTS %s", ks); + } + + private String getCreateTableCQL(String ks, String table) + { + return format("CREATE TABLE IF NOT EXISTS %s.%s (key text PRIMARY KEY, col1 text, col2 text)", ks, table); + } + + private String getDropTableCQL(String ks, String table) + { + return format("DROP TABLE IF EXISTS %s.%s", ks, table); + } + + private String getCreateViewCQL(String ks, String table) + { + return format("CREATE MATERIALIZED VIEW IF NOT EXISTS %s.%s AS SELECT key FROM %s.%s WHERE key IS NOT NULL PRIMARY KEY (key)", ks, table, TEST_KS, TEST_TABLE); + } + + private String getDropViewCQL(String ks, String view) + { + return format("DROP MATERIALIZED VIEW IF EXISTS %s.%s", ks, view); + } + + private String getSystemSchemaKeyspaceCQL(String ks) + { + return format("SELECT * FROM %s.%s WHERE keyspace_name='%s'", SchemaConstants.SCHEMA_KEYSPACE_NAME, SchemaKeyspaceTables.KEYSPACES, ks); + } + + private String getSystemSchemaTableCQL(String ks, String table) + { + return format("SELECT * FROM %s.%s WHERE keyspace_name='%s' AND table_name='%s'", SchemaConstants.SCHEMA_KEYSPACE_NAME, SchemaKeyspaceTables.TABLES, ks, table); + } + + private String getSystemSchemaViewCQL(String ks, String view) + { + return format("SELECT * FROM %s.%s WHERE keyspace_name='%s' AND view_name='%s'", SchemaConstants.SCHEMA_KEYSPACE_NAME, SchemaKeyspaceTables.VIEWS, ks, view); + } +} diff --git a/test/unit/org/apache/cassandra/db/guardrails/GuardrailTester.java b/test/unit/org/apache/cassandra/db/guardrails/GuardrailTester.java index f2744abf57..6c89245302 100644 --- a/test/unit/org/apache/cassandra/db/guardrails/GuardrailTester.java +++ b/test/unit/org/apache/cassandra/db/guardrails/GuardrailTester.java @@ -86,8 +86,8 @@ public abstract class GuardrailTester extends CQLTester // previously created table, which is not what we want). protected static final String FAIL_TABLE = "abort_table_creation_test"; - private static final String USERNAME = "guardrail_user"; - private static final String PASSWORD = "guardrail_password"; + protected static final String USERNAME = "guardrail_user"; + protected static final String PASSWORD = "guardrail_password"; protected static ClientState systemClientState, userClientState, superClientState; From bf4ba5393c53b9756f42dfdb9a3d7231c108fa36 Mon Sep 17 00:00:00 2001 From: Stefan Miklosovic Date: Wed, 8 May 2024 23:26:54 +0200 Subject: [PATCH 2/2] DO NOT COMMIT --- .circleci/config.yml | 574 ++++++++++++++++++++++++++++--------------- 1 file changed, 372 insertions(+), 202 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8ac77b306c..33cbc352d4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -24,7 +24,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -80,7 +80,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -111,10 +111,10 @@ jobs: j17_dtests: docker: - image: apache/cassandra-testing-ubuntu2004-java11:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -187,7 +187,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -220,7 +220,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 1 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -304,7 +304,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -369,7 +369,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -402,7 +402,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -458,7 +458,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -489,10 +489,10 @@ jobs: j11_dtests_latest_repeat: docker: - image: apache/cassandra-testing-ubuntu2004-java11-w-dependencies:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -591,7 +591,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -656,7 +656,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -690,7 +690,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -774,7 +774,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -804,10 +804,10 @@ jobs: j17_cqlsh_dtests_py38_vnode: docker: - image: apache/cassandra-testing-ubuntu2004-java11:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -882,7 +882,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -912,10 +912,10 @@ jobs: j17_dtests_vnode_repeat: docker: - image: apache/cassandra-testing-ubuntu2004-java11:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -1036,7 +1036,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -1066,10 +1066,10 @@ jobs: j11_dtests_vnode_repeat: docker: - image: apache/cassandra-testing-ubuntu2004-java11-w-dependencies:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -1168,7 +1168,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -1199,10 +1199,10 @@ jobs: j17_cqlsh_dtests_py311_latest: docker: - image: apache/cassandra-testing-ubuntu2004-java11:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -1277,7 +1277,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -1310,7 +1310,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -1394,7 +1394,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -1428,7 +1428,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -1484,7 +1484,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -1518,7 +1518,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -1602,7 +1602,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -1632,10 +1632,10 @@ jobs: j11_cqlsh_dtests_py38_latest: docker: - image: apache/cassandra-testing-ubuntu2004-java11-w-dependencies:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -1710,7 +1710,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -1744,7 +1744,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -1800,7 +1800,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -1830,10 +1830,10 @@ jobs: j11_cqlsh_dtests_py311: docker: - image: apache/cassandra-testing-ubuntu2004-java11-w-dependencies:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -1908,7 +1908,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -1939,10 +1939,10 @@ jobs: j17_dtests_large_vnode_repeat: docker: - image: apache/cassandra-testing-ubuntu2004-java11:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -2041,7 +2041,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -2071,10 +2071,10 @@ jobs: j17_dtests_repeat: docker: - image: apache/cassandra-testing-ubuntu2004-java11:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -2195,7 +2195,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -2228,7 +2228,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -2312,7 +2312,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -2346,7 +2346,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -2402,7 +2402,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -2432,10 +2432,10 @@ jobs: j17_cqlsh_dtests_py311: docker: - image: apache/cassandra-testing-ubuntu2004-java11:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -2510,7 +2510,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -2540,10 +2540,10 @@ jobs: j11_cqlsh_dtests_py38: docker: - image: apache/cassandra-testing-ubuntu2004-java11-w-dependencies:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -2618,7 +2618,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -2652,7 +2652,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -2708,7 +2708,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -2741,7 +2741,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -2797,7 +2797,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -2831,7 +2831,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -2915,7 +2915,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -2948,7 +2948,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -3110,7 +3110,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -3141,10 +3141,10 @@ jobs: j11_dtests_large_vnode: docker: - image: apache/cassandra-testing-ubuntu2004-java11-w-dependencies:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -3195,7 +3195,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -3226,10 +3226,10 @@ jobs: j11_dtests_large_vnode_repeat: docker: - image: apache/cassandra-testing-ubuntu2004-java11-w-dependencies:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -3328,7 +3328,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -3359,10 +3359,10 @@ jobs: j11_dtests_large: docker: - image: apache/cassandra-testing-ubuntu2004-java11-w-dependencies:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -3413,7 +3413,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -3447,7 +3447,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -3503,7 +3503,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -3537,7 +3537,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -3621,7 +3621,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -3652,10 +3652,10 @@ jobs: j11_upgrade_dtests_repeat: docker: - image: apache/cassandra-testing-ubuntu2004-java11-w-dependencies:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -3754,7 +3754,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -3788,7 +3788,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 1 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -3872,7 +3872,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -3905,7 +3905,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -4067,7 +4067,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -4173,7 +4173,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -4206,7 +4206,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -4290,7 +4290,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -4324,7 +4324,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -4380,7 +4380,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -4413,7 +4413,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 1 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -4497,7 +4497,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -4568,7 +4568,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -4602,7 +4602,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -4658,7 +4658,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -4692,7 +4692,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -4748,7 +4748,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -4851,7 +4851,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -4923,7 +4923,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -4957,7 +4957,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -5013,7 +5013,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -5126,7 +5126,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -5160,7 +5160,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 1 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -5244,7 +5244,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -5316,7 +5316,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -5350,7 +5350,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -5406,7 +5406,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -5437,10 +5437,10 @@ jobs: j17_dtests_vnode: docker: - image: apache/cassandra-testing-ubuntu2004-java11:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -5513,7 +5513,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -5543,10 +5543,10 @@ jobs: j11_dtests_repeat: docker: - image: apache/cassandra-testing-ubuntu2004-java11-w-dependencies:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -5645,7 +5645,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -5679,7 +5679,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -5763,7 +5763,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -5797,7 +5797,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -5881,7 +5881,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -5912,10 +5912,10 @@ jobs: j17_dtests_latest_repeat: docker: - image: apache/cassandra-testing-ubuntu2004-java11:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -6014,7 +6014,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -6047,7 +6047,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -6103,7 +6103,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -6134,10 +6134,10 @@ jobs: j11_upgrade_dtests: docker: - image: apache/cassandra-testing-ubuntu2004-java11-w-dependencies:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -6188,7 +6188,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -6219,10 +6219,10 @@ jobs: j11_dtests_large_repeat: docker: - image: apache/cassandra-testing-ubuntu2004-java11-w-dependencies:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -6321,7 +6321,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -6355,7 +6355,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -6411,7 +6411,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -6482,7 +6482,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -6512,10 +6512,10 @@ jobs: j17_dtests_large_vnode: docker: - image: apache/cassandra-testing-ubuntu2004-java11:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -6566,7 +6566,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -6596,10 +6596,10 @@ jobs: j11_cqlsh_dtests_py38_vnode: docker: - image: apache/cassandra-testing-ubuntu2004-java11-w-dependencies:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -6674,7 +6674,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -6708,7 +6708,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -6764,7 +6764,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -6798,7 +6798,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -6854,7 +6854,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -6885,10 +6885,10 @@ jobs: j11_cqlsh_dtests_py311_latest: docker: - image: apache/cassandra-testing-ubuntu2004-java11-w-dependencies:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -6963,7 +6963,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -7027,7 +7027,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -7057,10 +7057,10 @@ jobs: j11_cqlsh_dtests_py311_vnode: docker: - image: apache/cassandra-testing-ubuntu2004-java11-w-dependencies:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -7135,7 +7135,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -7169,7 +7169,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -7253,7 +7253,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -7283,10 +7283,10 @@ jobs: j17_cqlsh_dtests_py38_latest: docker: - image: apache/cassandra-testing-ubuntu2004-java11:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -7361,7 +7361,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -7391,10 +7391,10 @@ jobs: j17_cqlsh_dtests_py311_vnode: docker: - image: apache/cassandra-testing-ubuntu2004-java11:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -7469,7 +7469,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -7502,7 +7502,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 1 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -7586,7 +7586,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -7617,10 +7617,10 @@ jobs: j17_dtests_latest: docker: - image: apache/cassandra-testing-ubuntu2004-java11:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -7693,7 +7693,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -7726,7 +7726,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -7810,7 +7810,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -7881,7 +7881,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -7987,7 +7987,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -8021,7 +8021,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -8077,7 +8077,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -8108,10 +8108,10 @@ jobs: j11_dtests_latest: docker: - image: apache/cassandra-testing-ubuntu2004-java11-w-dependencies:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -8162,7 +8162,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -8226,7 +8226,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -8257,10 +8257,10 @@ jobs: j11_dtests: docker: - image: apache/cassandra-testing-ubuntu2004-java11-w-dependencies:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -8311,7 +8311,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -8342,10 +8342,10 @@ jobs: j17_cqlsh_dtests_py38: docker: - image: apache/cassandra-testing-ubuntu2004-java11:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -8420,7 +8420,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -8453,7 +8453,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -8537,7 +8537,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -8570,7 +8570,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -8626,7 +8626,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -8656,10 +8656,10 @@ jobs: j17_dtests_large: docker: - image: apache/cassandra-testing-ubuntu2004-java11:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -8710,7 +8710,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -8743,7 +8743,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -8799,7 +8799,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -8871,7 +8871,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -8904,7 +8904,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -8960,7 +8960,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -8990,10 +8990,10 @@ jobs: j11_dtests_vnode: docker: - image: apache/cassandra-testing-ubuntu2004-java11-w-dependencies:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -9044,7 +9044,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -9078,7 +9078,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -9134,7 +9134,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -9164,10 +9164,10 @@ jobs: j17_dtests_large_repeat: docker: - image: apache/cassandra-testing-ubuntu2004-java11:latest - resource_class: medium + resource_class: large working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -9266,7 +9266,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -9299,7 +9299,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -9355,7 +9355,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -9388,7 +9388,7 @@ jobs: resource_class: medium working_directory: ~/ shell: /bin/bash -eo pipefail -l - parallelism: 4 + parallelism: 25 steps: - attach_workspace: at: /home/cassandra @@ -9444,7 +9444,7 @@ jobs: - CCM_MAX_HEAP_SIZE: 1024M - CCM_HEAP_NEWSIZE: 256M - REPEATED_TESTS_STOP_ON_FAILURE: false - - REPEATED_UTESTS: null + - REPEATED_UTESTS: org.apache.cassandra.db.guardrails.GuardrailDDLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailDCLEnabledTest,org.apache.cassandra.db.guardrails.GuardrailAlterTableTest - REPEATED_UTESTS_COUNT: 500 - REPEATED_UTESTS_FQLTOOL: null - REPEATED_UTESTS_FQLTOOL_COUNT: 500 @@ -9487,6 +9487,12 @@ workflows: requires: - start_j11_unit_tests - j11_build + - start_j11_unit_tests_repeat: + type: approval + - j11_unit_tests_repeat: + requires: + - start_j11_unit_tests_repeat + - j11_build - start_j11_jvm_dtests: type: approval - j11_jvm_dtests: @@ -9547,18 +9553,36 @@ workflows: requires: - start_j17_unit_tests - j11_build + - start_j17_unit_tests_repeat: + type: approval + - j17_unit_tests_repeat: + requires: + - start_j17_unit_tests_repeat + - j11_build - start_j11_utests_oa: type: approval - j11_utests_oa: requires: - start_j11_utests_oa - j11_build + - start_j11_utests_oa_repeat: + type: approval + - j11_utests_oa_repeat: + requires: + - start_j11_utests_oa_repeat + - j11_build - start_j17_utests_oa: type: approval - j17_utests_oa: requires: - start_j17_utests_oa - j11_build + - start_j17_utests_oa_repeat: + type: approval + - j17_utests_oa_repeat: + requires: + - start_j17_utests_oa_repeat + - j11_build - start_j11_utests_long: type: approval - j11_utests_long: @@ -9583,6 +9607,18 @@ workflows: requires: - start_j17_utests_cdc - j11_build + - start_j11_utests_cdc_repeat: + type: approval + - j11_utests_cdc_repeat: + requires: + - start_j11_utests_cdc_repeat + - j11_build + - start_j17_utests_cdc_repeat: + type: approval + - j17_utests_cdc_repeat: + requires: + - start_j17_utests_cdc_repeat + - j11_build - start_j11_utests_compression: type: approval - j11_utests_compression: @@ -9595,6 +9631,18 @@ workflows: requires: - start_j17_utests_compression - j11_build + - start_j11_utests_compression_repeat: + type: approval + - j11_utests_compression_repeat: + requires: + - start_j11_utests_compression_repeat + - j11_build + - start_j17_utests_compression_repeat: + type: approval + - j17_utests_compression_repeat: + requires: + - start_j17_utests_compression_repeat + - j11_build - start_j11_utests_latest: type: approval - j11_utests_latest: @@ -9607,6 +9655,18 @@ workflows: requires: - start_j17_utests_latest - j11_build + - start_j11_utests_latest_repeat: + type: approval + - j11_utests_latest_repeat: + requires: + - start_j11_utests_latest_repeat + - j11_build + - start_j17_utests_latest_repeat: + type: approval + - j17_utests_latest_repeat: + requires: + - start_j17_utests_latest_repeat + - j11_build - start_j11_utests_stress: type: approval - j11_utests_stress: @@ -9643,6 +9703,18 @@ workflows: requires: - start_j17_utests_system_keyspace_directory - j11_build + - start_j11_utests_system_keyspace_directory_repeat: + type: approval + - j11_utests_system_keyspace_directory_repeat: + requires: + - start_j11_utests_system_keyspace_directory_repeat + - j11_build + - start_j17_utests_system_keyspace_directory_repeat: + type: approval + - j17_utests_system_keyspace_directory_repeat: + requires: + - start_j17_utests_system_keyspace_directory_repeat + - j11_build - start_j11_dtest_jars_build: type: approval - j11_dtest_jars_build: @@ -9790,9 +9862,21 @@ workflows: - j11_utests_oa: requires: - j11_build + - j11_utests_oa_repeat: + requires: + - j11_build + - j17_utests_oa_repeat: + requires: + - j11_build + - j11_unit_tests_repeat: + requires: + - j11_build - j11_utests_latest: requires: - j11_build + - j11_utests_latest_repeat: + requires: + - j11_build - j11_simulator_dtests: requires: - j11_build @@ -9826,9 +9910,15 @@ workflows: - j17_utests_oa: requires: - j11_build + - j17_unit_tests_repeat: + requires: + - j11_build - j17_utests_latest: requires: - j11_build + - j17_utests_latest_repeat: + requires: + - j11_build - start_utests_long: type: approval - j11_utests_long: @@ -9849,6 +9939,14 @@ workflows: requires: - start_utests_cdc - j11_build + - j11_utests_cdc_repeat: + requires: + - start_utests_cdc + - j11_build + - j17_utests_cdc_repeat: + requires: + - start_utests_cdc + - j11_build - start_utests_compression: type: approval - j11_utests_compression: @@ -9859,6 +9957,14 @@ workflows: requires: - start_utests_compression - j11_build + - j11_utests_compression_repeat: + requires: + - start_utests_compression + - j11_build + - j17_utests_compression_repeat: + requires: + - start_utests_compression + - j11_build - start_utests_stress: type: approval - j11_utests_stress: @@ -9888,6 +9994,13 @@ workflows: requires: - start_utests_system_keyspace_directory - j11_build + - j11_utests_system_keyspace_directory_repeat: + requires: + - j11_build + - j17_utests_system_keyspace_directory_repeat: + requires: + - start_utests_system_keyspace_directory + - j11_build - start_jvm_upgrade_dtests: type: approval - j11_dtest_jars_build: @@ -9998,6 +10111,12 @@ workflows: requires: - start_j17_unit_tests - j17_build + - start_j17_unit_tests_repeat: + type: approval + - j17_unit_tests_repeat: + requires: + - start_j17_unit_tests_repeat + - j17_build - start_j17_jvm_dtests: type: approval - j17_jvm_dtests: @@ -10086,6 +10205,12 @@ workflows: requires: - start_j17_utests_oa - j17_build + - start_j17_utests_oa_repeat: + type: approval + - j17_utests_oa_repeat: + requires: + - start_j17_utests_oa_repeat + - j17_build - start_j17_utests_long: type: approval - j17_utests_long: @@ -10098,18 +10223,36 @@ workflows: requires: - start_j17_utests_cdc - j17_build + - start_j17_utests_cdc_repeat: + type: approval + - j17_utests_cdc_repeat: + requires: + - start_j17_utests_cdc_repeat + - j17_build - start_j17_utests_compression: type: approval - j17_utests_compression: requires: - start_j17_utests_compression - j17_build + - start_j17_utests_compression_repeat: + type: approval + - j17_utests_compression_repeat: + requires: + - start_j17_utests_compression_repeat + - j17_build - start_j17_utests_latest: type: approval - j17_utests_latest: requires: - start_j17_utests_latest - j17_build + - start_j17_utests_latest_repeat: + type: approval + - j17_utests_latest_repeat: + requires: + - start_j17_utests_latest_repeat + - j17_build - start_j17_utests_stress: type: approval - j17_utests_stress: @@ -10128,6 +10271,12 @@ workflows: requires: - start_j17_utests_system_keyspace_directory - j17_build + - start_j17_utests_system_keyspace_directory_repeat: + type: approval + - j17_utests_system_keyspace_directory_repeat: + requires: + - start_j17_utests_system_keyspace_directory_repeat + - j17_build java17_pre-commit_tests: jobs: - start_pre-commit_tests: @@ -10141,9 +10290,18 @@ workflows: - j17_utests_oa: requires: - j17_build + - j17_utests_oa_repeat: + requires: + - j17_build + - j17_unit_tests_repeat: + requires: + - j17_build - j17_utests_latest: requires: - j17_build + - j17_utests_latest_repeat: + requires: + - j17_build - j17_jvm_dtests: requires: - j17_build @@ -10209,12 +10367,20 @@ workflows: requires: - start_utests_cdc - j17_build + - j17_utests_cdc_repeat: + requires: + - start_utests_cdc + - j17_build - start_utests_compression: type: approval - j17_utests_compression: requires: - start_utests_compression - j17_build + - j17_utests_compression_repeat: + requires: + - start_utests_compression + - j17_build - start_utests_stress: type: approval - j17_utests_stress: @@ -10233,3 +10399,7 @@ workflows: requires: - start_utests_system_keyspace_directory - j17_build + - j17_utests_system_keyspace_directory_repeat: + requires: + - start_utests_system_keyspace_directory + - j17_build