Skip to content

Commit

Permalink
Merge #104000
Browse files Browse the repository at this point in the history
104000: roachtest: fix param type in `failover` deadlock mode r=erikgrinaker a=erikgrinaker

Sorry for the noise!

Resolves #103992.
Resolves #103994.
Resolves #103996.
Resolves #103997.
Resolves #103998.
Resolves #103999.
Resolves #104001.
Resolves #104003.
Resolves #104004.

Epic: none
Release note: None

Co-authored-by: Erik Grinaker <[email protected]>
  • Loading branch information
craig[bot] and erikgrinaker committed May 27, 2023
2 parents de31561 + fee7604 commit dd8dbfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/roachtest/tests/failover.go
Original file line number Diff line number Diff line change
Expand Up @@ -1516,9 +1516,9 @@ func (f *deadlockFailer) Fail(ctx context.Context, nodeID int) {
ctx, cancel := context.WithTimeout(ctx, 20*time.Second) // can take a while to lock
defer cancel()

predicate := `$1 = ANY(replicas)`
predicate := `$1::int = ANY(replicas)`
if f.onlyLeaseholders {
predicate += ` AND lease_holder = $1`
predicate += ` AND lease_holder = $1::int`
}

conn := f.c.Conn(ctx, f.t.L(), nodeID)
Expand Down

0 comments on commit dd8dbfc

Please sign in to comment.