Skip to content

Commit 892ea7b

Browse files
committed
logictest: increase lease transfer timeout for cockroach-go/testserver
Since the test stops and starts nodes, giving more time to transfer leases during shutdown should make it less flaky. Release note: None
1 parent dc28e19 commit 892ea7b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/sql/logictest/logic.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,6 +1310,12 @@ func (t *logicTest) newTestServerCluster(bootstrapBinaryPath, upgradeBinaryPath
13101310
t.clusterCleanupFuncs = append(t.clusterCleanupFuncs, ts.Stop, cleanupLogsDir)
13111311

13121312
t.setSessionUser(username.RootUser, 0 /* nodeIdx */)
1313+
1314+
// These tests involve stopping and starting nodes, so to reduce flakiness,
1315+
// we increase the lease Transfer timeout.
1316+
if _, err := t.db.Exec("SET CLUSTER SETTING server.shutdown.lease_transfer_wait = '40s'"); err != nil {
1317+
t.Fatal(err)
1318+
}
13131319
}
13141320

13151321
// newCluster creates a new cluster. It should be called after the logic tests's

0 commit comments

Comments
 (0)