From 9145a21e1d7c97dddf24fea73f7012fee217ba6d Mon Sep 17 00:00:00 2001 From: Nathan VanBenschoten Date: Mon, 17 Jun 2024 14:06:01 -0400 Subject: [PATCH] roachtest: improve logging in gossip/chaos/nodes=9 Informs #124828. Release note: None --- pkg/cmd/roachtest/tests/gossip.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/cmd/roachtest/tests/gossip.go b/pkg/cmd/roachtest/tests/gossip.go index 859ef816d6a6..ed820bfadac2 100644 --- a/pkg/cmd/roachtest/tests/gossip.go +++ b/pkg/cmd/roachtest/tests/gossip.go @@ -96,6 +96,7 @@ SELECT node_id } if len(expLiveNodes) == 0 { + t.L().Printf("%d: found %d live nodes\n", i, len(liveNodes)) expLiveNodes = liveNodes continue } @@ -119,9 +120,10 @@ SELECT node_id } waitForGossip := func(deadNode int) { - t.Status("waiting for gossip to exclude dead node") + t.Status("waiting for gossip to exclude dead node %d", deadNode) start := timeutil.Now() for { + t.L().Printf("checking if gossip excludes dead node %d\n", deadNode) if gossipOK(start, deadNode) { return }