@@ -311,7 +311,9 @@ func (s preserveDowngradeOptionStep) Run(
311311 return err
312312 }
313313
314- return service .Exec (rng , "SET CLUSTER SETTING cluster.preserve_downgrade_option = $1" , bv .String ())
314+ return service .ExecWithRetry (rng , service .Descriptor .Nodes , roachtestutil .ClusterSettingRetryOpts ,
315+ "SET CLUSTER SETTING cluster.preserve_downgrade_option = $1" , bv .String (),
316+ )
315317}
316318
317319func (s preserveDowngradeOptionStep ) ConcurrencyDisabled () bool {
@@ -408,8 +410,10 @@ func (s allowUpgradeStep) Description() string {
408410func (s allowUpgradeStep ) Run (
409411 ctx context.Context , l * logger.Logger , rng * rand.Rand , h * Helper ,
410412) error {
411- return serviceByName (h , s .virtualClusterName ).Exec (
412- rng , "RESET CLUSTER SETTING cluster.preserve_downgrade_option" ,
413+ service := serviceByName (h , s .virtualClusterName )
414+ return service .ExecWithRetry (
415+ rng , service .Descriptor .Nodes , roachtestutil .ClusterSettingRetryOpts ,
416+ "RESET CLUSTER SETTING cluster.preserve_downgrade_option" ,
413417 )
414418}
415419
@@ -515,8 +519,8 @@ func (s setClusterSettingStep) Run(
515519 args = []interface {}{val }
516520 }
517521
518- return serviceByName (h , serviceName ).ExecWithGateway (
519- rng , nodesRunningAtLeast (s .virtualClusterName , s .minVersion , h ), stmt , args ... ,
522+ return serviceByName (h , serviceName ).ExecWithRetry (
523+ rng , nodesRunningAtLeast (s .virtualClusterName , s .minVersion , h ), roachtestutil . ClusterSettingRetryOpts , stmt , args ... ,
520524 )
521525}
522526
@@ -563,7 +567,9 @@ func (s setClusterVersionStep) Run(
563567 }
564568
565569 l .Printf ("setting cluster version to '%s'" , binaryVersion )
566- return service .Exec (rng , "SET CLUSTER SETTING version = $1" , binaryVersion )
570+ return service .ExecWithRetry (rng , service .Descriptor .Nodes , roachtestutil .ClusterSettingRetryOpts ,
571+ "SET CLUSTER SETTING version = $1" , binaryVersion ,
572+ )
567573}
568574
569575func (s setClusterVersionStep ) ConcurrencyDisabled () bool {
@@ -587,8 +593,8 @@ func (s resetClusterSettingStep) Run(
587593 ctx context.Context , l * logger.Logger , rng * rand.Rand , h * Helper ,
588594) error {
589595 stmt := fmt .Sprintf ("RESET CLUSTER SETTING %s" , s .name )
590- return serviceByName (h , s .virtualClusterName ).ExecWithGateway (
591- rng , nodesRunningAtLeast (s .virtualClusterName , s .minVersion , h ), stmt ,
596+ return serviceByName (h , s .virtualClusterName ).ExecWithRetry (
597+ rng , nodesRunningAtLeast (s .virtualClusterName , s .minVersion , h ), roachtestutil . ClusterSettingRetryOpts , stmt ,
592598 )
593599}
594600
0 commit comments