Skip to content

Commit 496948e

Browse files
author
Yevgeniy Miretskiy
committed
roachtest: Ensure tpcc workloads runs for a bit
An issue in roachtest cockroachdb#108530 prevents clean test termination when calling Wait() on a test monitor that did not have at least 1 task started. This cause `cdc/kafka-oauth` test to hang. Add a '30s' duration to the tpcc task to go around this problem. Fixes cockroachdb#108507 Release note: None
1 parent 7fe93d7 commit 496948e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/cmd/roachtest/tests/cdc.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,10 @@ func registerCDC(r registry.Registry) {
13271327
ct := newCDCTester(ctx, t, c)
13281328
defer ct.Close()
13291329

1330-
ct.runTPCCWorkload(tpccArgs{warehouses: 1})
1330+
// Run tpcc workload for tiny bit. Roachtest monitor does not
1331+
// like when there are no tasks that were started with the monitor
1332+
// (This can be removed once #108530 resolved).
1333+
ct.runTPCCWorkload(tpccArgs{warehouses: 1, duration: "30s"})
13311334

13321335
kafkaNode := ct.kafkaSinkNode()
13331336
kafka := kafkaManager{

0 commit comments

Comments
 (0)