Skip to content

Commit

Permalink
Merge pull request #100155 from cockroachdb/blathers/backport-release…
Browse files Browse the repository at this point in the history
…-23.1-100111

release-23.1: kvserver: deflake `TestRejectedLeaseDoesntDictateClosedTimestamp`
  • Loading branch information
erikgrinaker authored Mar 30, 2023
2 parents fd9eb79 + a554fe1 commit 1d52bf4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkg/kv/kvserver/client_raft_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2093,10 +2093,10 @@ func runReplicateRestartAfterTruncation(t *testing.T, removeBeforeTruncateAndReA
},
},
RaftConfig: base.RaftConfig{
// Don't timeout raft leaders or range leases (see the relation between
// RaftElectionTimeoutTicks and RangeLeaseActiveDuration). This test expects
// Don't timeout raft leaders or range leases. This test expects
// tc.Servers[0] to hold the range lease for the range under test.
RaftElectionTimeoutTicks: 1000000,
RangeLeaseDuration: time.Minute,
},
}
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/kv/kvserver/closed_timestamp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -680,12 +680,12 @@ func TestClosedTimestampFrozenAfterSubsumption(t *testing.T) {
ServerArgs: base.TestServerArgs{
Settings: cs,
RaftConfig: base.RaftConfig{
// We set the raft election timeout to a small duration. This should
// result in the node liveness duration being ~3.6 seconds. Note that
// We set the raft election timeout to a small duration. Note that
// if we set this too low, the test may flake due to the test
// cluster's nodes frequently missing their liveness heartbeats.
RaftHeartbeatIntervalTicks: 5,
RaftElectionTimeoutTicks: 6,
RangeLeaseDuration: 3 * time.Second,
},
Knobs: base.TestingKnobs{
Server: &server.TestingKnobs{
Expand Down
2 changes: 1 addition & 1 deletion pkg/kv/kvserver/replica_closedts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ func TestRejectedLeaseDoesntDictateClosedTimestamp(t *testing.T) {
RangeLeaseRenewalFraction: -1,
// Also make expiration-based leases last for a long time, as the test
// wants a valid lease after cluster start.
RaftElectionTimeoutTicks: 1000,
RangeLeaseDuration: time.Minute,
},
Knobs: base.TestingKnobs{
Server: &server.TestingKnobs{
Expand Down

0 comments on commit 1d52bf4

Please sign in to comment.