From f74c07d2d314d9127b210ec5dce9152110e060b3 Mon Sep 17 00:00:00 2001 From: Marcus Eriksson Date: Fri, 1 Dec 2023 14:21:09 +0100 Subject: [PATCH] Lower the number of tables and repairs to avoid timeouts in ClearSnapshotTest Patch by marcuse; reviewed by Sam Tunnicliffe for CASSANDRA-19070 --- .../apache/cassandra/distributed/test/ClearSnapshotTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/distributed/org/apache/cassandra/distributed/test/ClearSnapshotTest.java b/test/distributed/org/apache/cassandra/distributed/test/ClearSnapshotTest.java index 384e79d468..1725f29f92 100644 --- a/test/distributed/org/apache/cassandra/distributed/test/ClearSnapshotTest.java +++ b/test/distributed/org/apache/cassandra/distributed/test/ClearSnapshotTest.java @@ -60,7 +60,7 @@ public class ClearSnapshotTest extends TestBaseImpl .withInstanceInitializer(BB::install) .start())) { - int tableCount = 50; + int tableCount = 20; for (int i = 0; i < tableCount; i++) { String ksname = "ks"+i; @@ -103,7 +103,7 @@ public class ClearSnapshotTest extends TestBaseImpl activeRepairs = cluster.get(1).callOnInstance(() -> ActiveRepairService.instance().parentRepairSessionCount()); Thread.sleep(50); } - while (activeRepairs < 35); + while (activeRepairs < 10); cluster.setUncaughtExceptionsFilter((t) -> t.getMessage() != null && t.getMessage().contains("Parent repair session with id") ); cluster.get(2).shutdown().get(); @@ -157,7 +157,6 @@ public class ClearSnapshotTest extends TestBaseImpl try(Cluster cluster = init(Cluster.build(3).withConfig(config -> config.with(GOSSIP) .with(NETWORK)) - .withInstanceInitializer(BB::install) .start())) { cluster.schemaChange(withKeyspace("create table %s.tbl (id int primary key, x int)"));