Skip to content

Commit

Permalink
Merge #28489
Browse files Browse the repository at this point in the history
28489: roachtest: fix upgrade test r=tschottdorf a=petermattis

This is the same fix as #28472, but for a different test. Use a `quit`
command line that is compatible with 2.0. This was accidentally broken
in #28373.

Fixes #28452

Release note: None

Co-authored-by: Peter Mattis <petermattis@gmail.com>
  • Loading branch information
craig[bot] and petermattis committed Aug 11, 2018
2 parents aca47a7 + defb8cc commit 49d34b1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pkg/cmd/roachtest/upgrade.go
Expand Up @@ -86,7 +86,10 @@ func registerUpgrade(r *registry) {

stop := func(node int) error {
port := fmt.Sprintf("{pgport:%d}", node)
if err := c.RunE(ctx, c.Node(node), "./cockroach quit --insecure --host=:"+port); err != nil {
// Note that the following command line needs to run against both v2.0
// and the current branch. Do not change it in a manner that is
// incompatible with 2.0.
if err := c.RunE(ctx, c.Node(node), "./cockroach quit --insecure --port="+port); err != nil {
return err
}
c.Stop(ctx, c.Node(node))
Expand All @@ -95,7 +98,10 @@ func registerUpgrade(r *registry) {

decommissionAndStop := func(node int) error {
port := fmt.Sprintf("{pgport:%d}", node)
if err := c.RunE(ctx, c.Node(node), "./cockroach quit --decommission --insecure --host=:"+port); err != nil {
// Note that the following command line needs to run against both v2.0
// and the current branch. Do not change it in a manner that is
// incompatible with 2.0.
if err := c.RunE(ctx, c.Node(node), "./cockroach quit --decommission --insecure --port="+port); err != nil {
return err
}
c.Stop(ctx, c.Node(node))
Expand Down

0 comments on commit 49d34b1

Please sign in to comment.