Skip to content

Commit

Permalink
Merge pull request #108544 from cockroachdb/blathers/backport-release…
Browse files Browse the repository at this point in the history
…-23.1-108517
  • Loading branch information
kvoli authored Aug 11, 2023
2 parents 1d52486 + b9760fd commit 83e78cb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/cmd/roachtest/tests/lease_preferences.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,14 @@ func runLeasePreferences(
// enforcement.
require.NoError(t, WaitForReplication(ctx, t, conn, spec.replFactor))

// Set a lease preference for the liveness range, to be on n5. This test
// would occasionally fail due to the liveness heartbeat failures, when the
// liveness lease is on a stopped node. This is not ideal behavior, #108512.
configureZone(t, ctx, conn, "RANGE liveness", zoneConfig{
replicas: spec.replFactor,
leaseNode: 5,
})

t.L().Printf("setting lease preferences: %s", spec.preferences)
setLeasePreferences(ctx, spec.preferences)
t.L().Printf("waiting for initial lease preference conformance")
Expand Down

0 comments on commit 83e78cb

Please sign in to comment.