diff options
author | Mohit Agrawal <moagrawal@redhat.com> | 2020-06-09 15:38:12 +0530 |
---|---|---|
committer | Mohit Agrawal <moagrawal@redhat.com> | 2020-06-09 16:01:04 +0530 |
commit | 955bfd567329cf7fe63e9c3b89d333a55e5e9a20 (patch) | |
tree | 38f3630d6b65b1803bf301244c168d25a539f8cb /tests | |
parent | 06fa9869070146e8c832cb930536c66c91494fd8 (diff) |
test: Test case brick-mux-validation-in-cluster.t is failing on RHEL-8
Brick process are not properly attached on any cluster node while
some volume options are changed on peer node and glusterd is down on
that specific node.
Solution: At the time of restart glusterd it got a friend update request
from a peer node if peer node having some changes on volume.If the brick
process is started before received a friend update request in that case
brick_mux behavior is not workingproperly. All bricks are attached to
the same process even volumes options are not the same. To avoid the
issue introduce an atomic flag volpeerupdate and update the value while
glusterd has received a friend update request from peer for a specific
volume.If volpeerupdate flag is 1 volume is started by
glusterd_import_friend_volume synctask
Change-Id: I4c026f1e7807ded249153670e6967a2be8d22cb7
Credit: Sanju Rakaonde <srakonde@redhat.com>
fixes: #1290
Signed-off-by: Mohit Agrawal <moagrawal@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs/glusterd/brick-mux-validation-in-cluster.t | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/bugs/glusterd/brick-mux-validation-in-cluster.t b/tests/bugs/glusterd/brick-mux-validation-in-cluster.t index f088dbb426c..b6af487a791 100644 --- a/tests/bugs/glusterd/brick-mux-validation-in-cluster.t +++ b/tests/bugs/glusterd/brick-mux-validation-in-cluster.t @@ -100,10 +100,8 @@ $CLI_2 volume set $V0 performance.readdir-ahead on $CLI_2 volume set $V1 performance.readdir-ahead on TEST $glusterd_1; +EXPECT_WITHIN $PROBE_TIMEOUT 2 peer_count -sleep 10 - -EXPECT 4 count_brick_processes EXPECT_WITHIN $PROCESS_UP_TIMEOUT 4 count_brick_pids EXPECT_WITHIN $PROCESS_UP_TIMEOUT 0 count_N/A_brick_pids |