Skip to content

Commit 0325265

Browse files
authored
Merge pull request #19 from hanxizh9910/fix/cluster-slot-migration-flaky-test-2693
Deflake cluster-slot-migration-flaky-test-2693
2 parents b4c93cc + e019e0d commit 0325265

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/unit/cluster/cli.tcl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,16 @@ test {Migrate the last slot away from a node using valkey-cli} {
284284
fail "Cluster doesn't stabilize"
285285
}
286286

287+
# Ensure all node IDs are propagated
288+
wait_for_condition 1000 50 {
289+
[CI 0 cluster_known_nodes] == 4 &&
290+
[CI 1 cluster_known_nodes] == 4 &&
291+
[CI 2 cluster_known_nodes] == 4 &&
292+
[CI 3 cluster_known_nodes] == 4
293+
} else {
294+
fail "Cluster gossip hasn't propagated all node IDs"
295+
}
296+
287297
set newnode_r [valkey_client -3]
288298
set newnode_id [$newnode_r CLUSTER MYID]
289299

0 commit comments

Comments
 (0)