Skip to content

Commit

Permalink
Merge #70755
Browse files Browse the repository at this point in the history
70755: roachtest: avoid ports >= 32768 r=erikgrinaker a=tbg

These are used as ephemeral ports by the linux kernel, and thus they're
not always up for grabs.

Fixes #70739.

Release note: None


Co-authored-by: Tobias Grieger <[email protected]>
  • Loading branch information
craig[bot] and tbg committed Sep 27, 2021
2 parents 617498b + f93d30f commit 8a07def
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/cmd/roachtest/tests/multitenant_upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func runMultiTenantUpgrade(ctx context.Context, t test.Test, c cluster.Cluster,
kvAddrs, err := c.ExternalAddr(ctx, kvNodes)
require.NoError(t, err)

const tenant11HTTPPort, tenant11SQLPort = 8081, 36357
const tenant11HTTPPort, tenant11SQLPort = 8011, 20011
const tenant11ID = 11
runner := sqlutils.MakeSQLRunner(c.Conn(ctx, 1))
// We'll sometimes have to wait out the backoff of the host cluster
Expand Down Expand Up @@ -245,7 +245,7 @@ func runMultiTenantUpgrade(ctx context.Context, t test.Test, c cluster.Cluster,

t.Status("creating a new tenant 12")

const tenant12HTTPPort, tenant12SQLPort = 8082, 36358
const tenant12HTTPPort, tenant12SQLPort = 8012, 20012
const tenant12ID = 12
runner.Exec(t, `SELECT crdb_internal.create_tenant($1)`, tenant12ID)

Expand All @@ -267,7 +267,7 @@ func runMultiTenantUpgrade(ctx context.Context, t test.Test, c cluster.Cluster,

t.Status("creating a new tenant 13")

const tenant13HTTPPort, tenant13SQLPort = 8083, 36359
const tenant13HTTPPort, tenant13SQLPort = 8013, 20013
const tenant13ID = 13
runner.Exec(t, `SELECT crdb_internal.create_tenant($1)`, tenant13ID)

Expand Down Expand Up @@ -383,7 +383,7 @@ func runMultiTenantUpgrade(ctx context.Context, t test.Test, c cluster.Cluster,

t.Status("creating tenant 14 at the new version")

const tenant14HTTPPort, tenant14SQLPort = 8084, 36360
const tenant14HTTPPort, tenant14SQLPort = 8014, 20014
const tenant14ID = 14
runner.Exec(t, `SELECT crdb_internal.create_tenant($1)`, tenant14ID)

Expand Down

0 comments on commit 8a07def

Please sign in to comment.