Skip to content

Commit

Permalink
sql: stablize TestValidateMixedVersionElements test
Browse files Browse the repository at this point in the history
Informs: #106612

Release note: None
  • Loading branch information
chengxiong-ruan committed Jul 13, 2023
1 parent 54d9414 commit 032c6e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/sql/schemachanger/sctest/cumulative.go
Original file line number Diff line number Diff line change
Expand Up @@ -1709,6 +1709,10 @@ func ValidateMixedVersionElements(t *testing.T, path string, newCluster NewMixed
},
}, true /*down level*/)
tdb := sqlutils.MakeSQLRunner(db)
// Use shorter liveness heartbeat interval and longer liveness ttl to
// avoid errors caused by refused connections.
tdb.Exec(t, `SET CLUSTER SETTING server.sqlliveness.heartbeat = '1s'`)
tdb.Exec(t, `SET CLUSTER SETTING server.sqlliveness.ttl = '120s'`)

// Wait for the schema changer job to hit desired stage, pause the job,
// perform a cluster upgrade, and resume the job.
Expand Down

0 comments on commit 032c6e1

Please sign in to comment.