Skip to content

Commit

Permalink
roachtest: improve logging in gossip/chaos/nodes=9
Browse files Browse the repository at this point in the history
Informs cockroachdb#124828.

Release note: None
  • Loading branch information
nvanbenschoten committed Jun 17, 2024
1 parent 5521253 commit 9145a21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/cmd/roachtest/tests/gossip.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
Expand Down

0 comments on commit 9145a21

Please sign in to comment.