From 2c72155b64ed7da6661b316fa22efc5051ede96b Mon Sep 17 00:00:00 2001 From: Tobias Grieger Date: Tue, 25 Jul 2023 16:37:46 +0200 Subject: [PATCH] kvserver: disable replicate queue and lease transfers in closedts tests For a more holistic suggestion on how to fix this for the likely many other tests susceptible to similar issues, see: https://github.com/cockroachdb/cockroach/issues/107528 Fixes #101824. Release note: None Epic: none --- pkg/kv/kvserver/closed_timestamp_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/kv/kvserver/closed_timestamp_test.go b/pkg/kv/kvserver/closed_timestamp_test.go index bb59a791b8db..8bebfbbb082b 100644 --- a/pkg/kv/kvserver/closed_timestamp_test.go +++ b/pkg/kv/kvserver/closed_timestamp_test.go @@ -1206,9 +1206,15 @@ func setupClusterForClosedTSTesting( SET CLUSTER SETTING kv.closed_timestamp.target_duration = '%s'; SET CLUSTER SETTING kv.closed_timestamp.side_transport_interval = '%s'; SET CLUSTER SETTING kv.closed_timestamp.follower_reads_enabled = true; +SET CLUSTER SETTING kv.allocator.load_based_rebalancing = 'off'; `, targetDuration, targetDuration/4), ";")...) + // Disable replicate queues to avoid errant lease transfers. + // + // See: https://github.com/cockroachdb/cockroach/issues/101824. + tc.ToggleReplicateQueues(false) + return tc, tc.ServerConn(0), desc }