Skip to content

Commit bc28487

Browse files
committed
mixedversion: increase auto_upgrade verbosity in mixed version tests
We sometimes see the auto upgrade process hang, and it would be nice to see additionally logging to help debug.
1 parent 165e40b commit bc28487

File tree

1 file changed

+4
-1
lines changed
  • pkg/cmd/roachtest/roachtestutil/mixedversion

1 file changed

+4
-1
lines changed

pkg/cmd/roachtest/roachtestutil/mixedversion/steps.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,9 +779,12 @@ func quoteVersionForPresentation(v string) string {
779779
// we should change the default and add an API for tests to opt-out of
780780
// the default scheduled backup if necessary.
781781
func startOpts(opts ...option.StartStopOption) option.StartOpts {
782-
return option.NewStartOpts(
782+
startOpts := option.NewStartOpts(
783783
startStopOpts(opts...)...,
784784
)
785+
// Enable verbose logging for auto_upgrade to help debug upgrade-related issues.
786+
startOpts.RoachprodOpts.ExtraArgs = append(startOpts.RoachprodOpts.ExtraArgs, "--vmodule=auto_upgrade=2")
787+
return startOpts
785788
}
786789

787790
// startStopOpts does the same as `startOpts` but returns StartStopOptions

0 commit comments

Comments
 (0)