Skip to content

Commit

Permalink
kvserver: disable replicate queue and lease transfers in closedts tests
Browse files Browse the repository at this point in the history
For a more holistic suggestion on how to fix this for the likely many other
tests susceptible to similar issues, see:
#107528

Fixes #101824.

Release note: None
Epic: none
  • Loading branch information
tbg committed Jul 25, 2023
1 parent fb6f209 commit 770437a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/kv/kvserver/closed_timestamp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1205,9 +1205,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
}

Expand Down

0 comments on commit 770437a

Please sign in to comment.