Skip to content

Commit 0c5fa80

Browse files
committed
fixup! mmaprototype: add tracing to rebalance_store test
close tracer, ./dev gen bazel, set tracer redactable (make sure we get good debug output in production)
1 parent 5b22779 commit 0c5fa80

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

pkg/kv/kvserver/allocator/mmaprototype/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ go_test(
5656
"//pkg/util/tracing",
5757
"@com_github_cockroachdb_datadriven//:datadriven",
5858
"@com_github_cockroachdb_errors//:errors",
59+
"@com_github_cockroachdb_redact//:redact",
5960
"@com_github_stretchr_testify//require",
6061
],
6162
)

pkg/kv/kvserver/allocator/mmaprototype/cluster_state_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,8 @@ func TestClusterState(t *testing.T) {
522522
rng := rand.New(rand.NewSource(0))
523523
dsm := newDiversityScoringMemo()
524524
tr := tracing.NewTracer()
525+
tr.SetRedactable(true)
526+
defer tr.Close()
525527
ctx, finishAndGet := tracing.ContextWithRecordingSpan(context.Background(), tr, "rebalance-stores")
526528
cs.rebalanceStores(ctx, storeID, rng, dsm)
527529
rec := finishAndGet()

0 commit comments

Comments
 (0)