The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/7413
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Rebalancing now happens around 5 seconds after the heartbeat Signed-off-by: Free Ekanayaka <free.ekanay...@canonical.com>
From 53c56de9c7fd776db9fcbd455bbaaafb91a9c070 Mon Sep 17 00:00:00 2001 From: Free Ekanayaka <free.ekanay...@canonical.com> Date: Fri, 22 May 2020 10:44:18 +0100 Subject: [PATCH] test: Wait a few more seconds for the rebalance to happen Rebalancing now happens around 5 seconds after the heartbeat Signed-off-by: Free Ekanayaka <free.ekanay...@canonical.com> --- test/suites/clustering.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/suites/clustering.sh b/test/suites/clustering.sh index 774dd7d798..9783cc2e26 100644 --- a/test/suites/clustering.sh +++ b/test/suites/clustering.sh @@ -1859,8 +1859,8 @@ test_clustering_remove_raft_node() { # Force removing the raft node. LXD_DIR="${LXD_ONE_DIR}" lxd cluster remove-raft-node -q "10.1.1.102" - # Wait for a heartbeat to propagate. - sleep 15 + # Wait for a heartbeat to propagate and a rebalance to be performed. + sleep 20 # We're back to 3 database nodes. LXD_DIR="${LXD_ONE_DIR}" lxc cluster list | grep "node1" | grep -q "YES"
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel