Lower the number of tables and repairs to avoid timeouts in ClearSnapshotTest

Patch by marcuse; reviewed by Sam Tunnicliffe for CASSANDRA-19070

backported to 5.0 in CASSANDRA-19622
This commit is contained in:
Marcus Eriksson 2023-12-01 14:21:09 +01:00 committed by Brandon Williams
parent ba5ab993c7
commit cfdeef43b3
1 changed files with 2 additions and 3 deletions

View File

@ -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)"));