From 6ce75cdea8ca7dc0d70c9ee7131b9d82778d1973 Mon Sep 17 00:00:00 2001 From: Binbin Date: Mon, 23 Sep 2024 17:35:02 +0800 Subject: [PATCH] Fix replica online timing issue in failover test (#1044) Ci reported this failure: ``` [exception]: Executing test client: ERR FAILOVER target replica is not online.. ERR FAILOVER target replica is not online. while executing "$node_0 failover to $node_1_host $node_1_port" ``` We can see somehow the replica is not online in time and casuing this failure, added a verify_replica_online to make sure the replica is online for the test. Signed-off-by: Binbin --- tests/integration/failover.tcl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/integration/failover.tcl b/tests/integration/failover.tcl index 3049cd0ca0..45d9a623e9 100644 --- a/tests/integration/failover.tcl +++ b/tests/integration/failover.tcl @@ -33,6 +33,8 @@ start_server {overrides {save {}}} { $node_2 replicaof $node_0_host $node_0_port wait_for_sync $node_1 wait_for_sync $node_2 + verify_replica_online $node_0 0 50 + verify_replica_online $node_0 1 50 } test {failover command fails with invalid host} {