mirror of https://github.com/apache/cassandra
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:
parent
ba5ab993c7
commit
cfdeef43b3
|
|
@ -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)"));
|
||||
|
|
|
|||
Loading…
Reference in New Issue