From 3f4276859ac48d1dbceafa22eafe6212a9cd5396 Mon Sep 17 00:00:00 2001 From: Erik Grinaker Date: Fri, 30 Jun 2023 14:56:18 +0000 Subject: [PATCH] kvserver: deflake TestClosedTimestampCantServeWithConflictingIntent Epic: none Release note: None --- pkg/kv/kvserver/closed_timestamp_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/kv/kvserver/closed_timestamp_test.go b/pkg/kv/kvserver/closed_timestamp_test.go index bb8abbbab775..7aca2e1cbca0 100644 --- a/pkg/kv/kvserver/closed_timestamp_test.go +++ b/pkg/kv/kvserver/closed_timestamp_test.go @@ -57,6 +57,11 @@ import ( var aggressiveResolvedTimestampClusterArgs = base.TestClusterArgs{ ServerArgs: base.TestServerArgs{ + RaftConfig: base.RaftConfig{ + // With expiration-based leases, we may be unable to maintain leases under + // race and stress, so use a longer lease duration. + RangeLeaseDuration: time.Minute, + }, Knobs: base.TestingKnobs{ Store: aggressiveResolvedTimestampPushKnobs(), },