Skip to content

Commit

Permalink
Merge pull request cockroachdb#106889 from erikgrinaker/backport22.2-…
Browse files Browse the repository at this point in the history
…106379

release-22.2: roachtest: deflake `kv/quiescence/nodes=3`
  • Loading branch information
erikgrinaker authored Jul 20, 2023
2 parents c7ce513 + dd0ad12 commit 51e3738
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/cmd/roachtest/tests/kv.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ func registerKVContention(r registry.Registry) {
func registerKVQuiescenceDead(r registry.Registry) {
r.Add(registry.TestSpec{
Name: "kv/quiescence/nodes=3",
Owner: registry.OwnerKV,
Owner: registry.OwnerReplication,
Cluster: r.MakeClusterSpec(4),
Run: func(ctx context.Context, t test.Test, c cluster.Cluster) {
nodes := c.Spec().NodeCount - 1
Expand All @@ -411,6 +411,11 @@ func registerKVQuiescenceDead(r registry.Registry) {
db := c.Conn(ctx, t.L(), 1)
defer db.Close()

if _, err := db.ExecContext(ctx,
"SET CLUSTER SETTING sql.stats.automatic_collection.enabled = 'false'"); err != nil {
t.Fatalf("failed to disable SQL stats collection: %v", err)
}

err := WaitFor3XReplication(ctx, t, db)
require.NoError(t, err)

Expand Down

0 comments on commit 51e3738

Please sign in to comment.