Skip to content

Commit

Permalink
roachtest: disable scheduled backup in rust-postgres node restart
Browse files Browse the repository at this point in the history
Fixes #96799

Release note: None
  • Loading branch information
msbutler committed Feb 10, 2023
1 parent 5f310bc commit f9cf805
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/cmd/roachtest/tests/rust_postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ func registerRustPostgres(r registry.Registry) {
// We stop the cluster and restart with a port of 5433 since Rust postgres
// has all of it's test hardcoded to use that port.
c.Stop(ctx, t.L(), option.DefaultStopOpts(), c.All())
startOpts := option.DefaultStartOpts()

// Don't restart the cluster with automatic scheduled backups because roachprod's internal sql
// interface, through which the scheduled backup executes, is naive to the port change.
startOpts := option.DefaultStartOptsNoBackups()
startOpts.RoachprodOpts.ExtraArgs = []string{"--port=5433"}
c.Start(ctx, t.L(), startOpts, install.MakeClusterSettings(), c.All())

Expand Down

0 comments on commit f9cf805

Please sign in to comment.