"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/basic/afr/gfid-mismatch-resolution-with-fav-child-policy.t" between
glusterfs-7.5.tar.gz and glusterfs-7.6.tar.gz

About: GlusterFS is a network/cluster filesystem. The storage server (or each in a cluster) runs glusterfsd and the clients use mount command or glusterfs client to mount the exported filesystem. Release series 7.x (latest version).

gfid-mismatch-resolution-with-fav-child-policy.t  (glusterfs-7.5):gfid-mismatch-resolution-with-fav-child-policy.t  (glusterfs-7.6)
skipping to change at line 168 skipping to change at line 168
gfid_0=$(gf_get_gfid_xattr $B0/${V0}0/f3) gfid_0=$(gf_get_gfid_xattr $B0/${V0}0/f3)
gfid_1=$(gf_get_gfid_xattr $B0/${V0}1/f3) gfid_1=$(gf_get_gfid_xattr $B0/${V0}1/f3)
gfid_2=$(gf_get_gfid_xattr $B0/${V0}2/f3) gfid_2=$(gf_get_gfid_xattr $B0/${V0}2/f3)
TEST [ "$gfid_0" != "$gfid_1" ] TEST [ "$gfid_0" != "$gfid_1" ]
TEST [ "$gfid_0" != "$gfid_2" ] TEST [ "$gfid_0" != "$gfid_2" ]
TEST [ "$gfid_1" != "$gfid_2" ] TEST [ "$gfid_1" != "$gfid_2" ]
#We know that second brick has the bigger size file #We know that second brick has the bigger size file
BIGGER_FILE_MD5=$(md5sum $B0/${V0}1/f3 | cut -d\ -f1) BIGGER_FILE_MD5=$(md5sum $B0/${V0}1/f3 | cut -d\ -f1)
TEST ls $M0/f3 TEST ls $M0 #Trigger entry heal via readdir inode refresh
TEST cat $M0/f3 TEST cat $M0/f3 #Trigger data heal via readv inode refresh
EXPECT_WITHIN $HEAL_TIMEOUT "^0$" get_pending_heal_count $V0 EXPECT_WITHIN $HEAL_TIMEOUT "^0$" get_pending_heal_count $V0
#gfid split-brain should be resolved #gfid split-brain should be resolved
gfid_0=$(gf_get_gfid_xattr $B0/${V0}0/f3) gfid_0=$(gf_get_gfid_xattr $B0/${V0}0/f3)
gfid_2=$(gf_get_gfid_xattr $B0/${V0}2/f3) gfid_2=$(gf_get_gfid_xattr $B0/${V0}2/f3)
TEST [ "$gfid_0" == "$gfid_1" ] TEST [ "$gfid_0" == "$gfid_1" ]
TEST [ "$gfid_2" == "$gfid_1" ] TEST [ "$gfid_2" == "$gfid_1" ]
HEALED_MD5_1=$(md5sum $B0/${V0}0/f3 | cut -d\ -f1) HEALED_MD5_1=$(md5sum $B0/${V0}0/f3 | cut -d\ -f1)
HEALED_MD5_2=$(md5sum $B0/${V0}2/f3 | cut -d\ -f1) HEALED_MD5_2=$(md5sum $B0/${V0}2/f3 | cut -d\ -f1)
skipping to change at line 214 skipping to change at line 214
#We know that first and second bricks agree with each other. Pick any one of #We know that first and second bricks agree with each other. Pick any one of
#them as source #them as source
MAJORITY_MD5=$(md5sum $B0/${V0}0/f4 | cut -d\ -f1) MAJORITY_MD5=$(md5sum $B0/${V0}0/f4 | cut -d\ -f1)
#Bring back the down brick and heal. #Bring back the down brick and heal.
TEST $CLI volume start $V0 force TEST $CLI volume start $V0 force
EXPECT_WITHIN $PROCESS_UP_TIMEOUT "1" brick_up_status $V0 $H0 $B0/${V0}2 EXPECT_WITHIN $PROCESS_UP_TIMEOUT "1" brick_up_status $V0 $H0 $B0/${V0}2
EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status $V0 2 EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status $V0 2
TEST ls $M0/f4 TEST ls $M0 #Trigger entry heal via readdir inode refresh
TEST cat $M0/f4 TEST cat $M0/f4 #Trigger data heal via readv inode refresh
EXPECT_WITHIN $HEAL_TIMEOUT "^0$" get_pending_heal_count $V0 EXPECT_WITHIN $HEAL_TIMEOUT "^0$" get_pending_heal_count $V0
#gfid split-brain should be resolved #gfid split-brain should be resolved
gfid_2=$(gf_get_gfid_xattr $B0/${V0}2/f4) gfid_2=$(gf_get_gfid_xattr $B0/${V0}2/f4)
TEST [ "$gfid_0" == "$gfid_2" ] TEST [ "$gfid_0" == "$gfid_2" ]
HEALED_MD5=$(md5sum $B0/${V0}2/f4 | cut -d\ -f1) HEALED_MD5=$(md5sum $B0/${V0}2/f4 | cut -d\ -f1)
TEST [ "$MAJORITY_MD5" == "$HEALED_MD5" ] TEST [ "$MAJORITY_MD5" == "$HEALED_MD5" ]
cleanup; cleanup;
 End of changes. 2 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)