Skip to content

Commit

Permalink
Merge pull request #107625 from kvoli/backport23.1-107507
Browse files Browse the repository at this point in the history
  • Loading branch information
kvoli authored Aug 7, 2023
2 parents aad4fd4 + dc05a48 commit 4bc18b6
Show file tree
Hide file tree
Showing 11 changed files with 673 additions and 33 deletions.
1 change: 1 addition & 0 deletions pkg/cmd/roachtest/tests/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ go_library(
"kv.go",
"kvbench.go",
"latency_verifier.go",
"lease_preferences.go",
"ledger.go",
"libpq.go",
"libpq_blocklist.go",
Expand Down
4 changes: 3 additions & 1 deletion pkg/cmd/roachtest/tests/failover.go
Original file line number Diff line number Diff line change
Expand Up @@ -1598,7 +1598,9 @@ func nodeMetric(
ctx context.Context, t test.Test, c cluster.Cluster, node int, metric string,
) float64 {
var value float64
err := c.Conn(ctx, t.L(), node).QueryRowContext(
conn := c.Conn(ctx, t.L(), node)
defer conn.Close()
err := conn.QueryRowContext(
ctx, `SELECT value FROM crdb_internal.node_metrics WHERE name = $1`, metric).Scan(&value)
require.NoError(t, err)
return value
Expand Down
Loading

0 comments on commit 4bc18b6

Please sign in to comment.