From fe746c700443d68433b4ebf464a8b27ebcebf396 Mon Sep 17 00:00:00 2001 From: Andrew Baptist Date: Wed, 16 Oct 2024 17:12:30 -0400 Subject: [PATCH] roachtest: enable raft tracing for perturbation/* tests Since raft tracing is not enabled by default, the perturbation tests enable it. This can be removed if we later make raft tracing enabled. Epic: none Release note: None --- pkg/cmd/roachtest/tests/admission_control_latency.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/cmd/roachtest/tests/admission_control_latency.go b/pkg/cmd/roachtest/tests/admission_control_latency.go index 7793bc158aab..036ce4dcf7e5 100644 --- a/pkg/cmd/roachtest/tests/admission_control_latency.go +++ b/pkg/cmd/roachtest/tests/admission_control_latency.go @@ -750,6 +750,11 @@ func (v variations) runTest(ctx context.Context, t test.Test, c cluster.Cluster) `SET CLUSTER SETTING kv.lease.reject_on_leader_unknown.enabled = true`); err != nil { t.Fatal(err) } + // Enable raft tracing. Remove this once raft tracing is the default. + if _, err := db.ExecContext(ctx, + `SET CLUSTER SETTING kv.raft.max_concurrent_traces = '10'`); err != nil { + t.Fatal(err) + } // This isn't strictly necessary, but it would be nice if this test passed at 10s (or lower). if _, err := db.ExecContext(ctx, `SET CLUSTER SETTING server.time_after_store_suspect = '10s'`); err != nil {