From 2176c70e95d197f2cd7ccd5d1bff5418c683c99a Mon Sep 17 00:00:00 2001 From: Arul Ajmani Date: Tue, 26 Nov 2024 20:13:53 -0500 Subject: [PATCH] kvserver: always use epoch based leases in TestRangeQuiescence Only epoch based leases can be quiesced. Explicitly use these for TestRangeQuiescence. References https://github.com/cockroachdb/cockroach/issues/133763 Release note: None --- pkg/kv/kvserver/client_raft_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/kv/kvserver/client_raft_test.go b/pkg/kv/kvserver/client_raft_test.go index 63e04116c6ee..2f9ba15ca4fc 100644 --- a/pkg/kv/kvserver/client_raft_test.go +++ b/pkg/kv/kvserver/client_raft_test.go @@ -4337,7 +4337,8 @@ func TestRangeQuiescence(t *testing.T) { ctx := context.Background() st := cluster.MakeTestingClusterSettings() - kvserver.ExpirationLeasesOnly.Override(ctx, &st.SV, false) // override metamorphism + // Only epoch based leases can be quiesced. + kvserver.OverrideDefaultLeaseType(ctx, &st.SV, roachpb.LeaseEpoch) tc := testcluster.StartTestCluster(t, 3, base.TestClusterArgs{