From c858088e88a23761cc45b0ca3ab8214f5e9f3b66 Mon Sep 17 00:00:00 2001 From: Andrew Baptist Date: Mon, 26 Jun 2023 12:02:39 -0400 Subject: [PATCH] roachtest: add delay after adding constraints Fixes: #105506. Fixes: #105505. Add a delay after adding the constraints before recommissioning the node. This allows the constraints to propagate to all nodes and avoids replicas being added back to the node. Epic: none Release note: None --- pkg/cmd/roachtest/tests/replicagc.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/cmd/roachtest/tests/replicagc.go b/pkg/cmd/roachtest/tests/replicagc.go index dfd5c4807023..d45d8db27635 100644 --- a/pkg/cmd/roachtest/tests/replicagc.go +++ b/pkg/cmd/roachtest/tests/replicagc.go @@ -271,6 +271,8 @@ func (h *replicagcTestHelper) isolateDeadNodes(ctx context.Context, runNode int) h.t.Fatal(err) } } + // Wait to make sure the new constraints are read by all nodes. + time.Sleep(time.Minute) } func waitForZeroReplicasOnN3(ctx context.Context, t test.Test, db *gosql.DB) {