cluster/afr: Fix bug-1433571-undo-pending-only-on-up-bricks.t

Problem:
The test case was checking for the entry pending marker reset
on the root after performing client side lookup at line #60-63.
But sometimes the entry heal was not getting completed immediately.

Fix:
Wait for the entry heal to complete before checking the changelog.

Change-Id: I42fde21b04a126ab044ce58373a996d72f125d96
fixes: bz#1614730
Signed-off-by: karthik-us <ksubrahm@redhat.com>
This commit is contained in:
karthik-us 2018-08-10 15:37:15 +05:30 committed by Shyamsundar Ranganathan
parent f88636abcb
commit fcf7ac8871

View File

@ -58,9 +58,9 @@ TEST $CLI volume set $V0 cluster.entry-self-heal on
TEST ls $M0
EXPECT "000000000000000000000001" get_hex_xattr trusted.afr.$V0-client-0 $B0/${V0}1
EXPECT "000000000000000000000000" get_hex_xattr trusted.afr.$V0-client-2 $B0/${V0}1
EXPECT "000000000000000000000001" get_hex_xattr trusted.afr.$V0-client-0 $B0/${V0}2
EXPECT "000000000000000000000000" get_hex_xattr trusted.afr.$V0-client-1 $B0/${V0}2
EXPECT_WITHIN $HEAL_TIMEOUT "000000000000000000000000" get_hex_xattr trusted.afr.$V0-client-2 $B0/${V0}1
EXPECT_WITHIN $HEAL_TIMEOUT "000000000000000000000000" get_hex_xattr trusted.afr.$V0-client-1 $B0/${V0}2
#Bring back all the bricks and trigger the heal again by doing ls. Now the
#pending xattrs on all the bricks should be 0.