"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/bugs/replicate/bug-1493415-gfid-heal.t" between
glusterfs-9.1.tar.gz and glusterfs-9.2.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 9.x (latest version).

bug-1493415-gfid-heal.t  (glusterfs-9.1):bug-1493415-gfid-heal.t  (glusterfs-9.2)
skipping to change at line 17 skipping to change at line 17
TEST glusterd TEST glusterd
TEST pidof glusterd TEST pidof glusterd
TEST $CLI volume create $V0 replica 2 $H0:$B0/${V0}{0,1} TEST $CLI volume create $V0 replica 2 $H0:$B0/${V0}{0,1}
TEST $CLI volume start $V0 TEST $CLI volume start $V0
TEST $GFS --volfile-id=$V0 --volfile-server=$H0 --attribute-timeout=0 --entry-ti meout=0 $M0; TEST $GFS --volfile-id=$V0 --volfile-server=$H0 --attribute-timeout=0 --entry-ti meout=0 $M0;
EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status $V0 0 EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status $V0 0
EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status $V0 1 EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status $V0 1
TEST $CLI volume set $V0 self-heal-daemon off TEST $CLI volume set $V0 self-heal-daemon off
# Create base entry in indices/xattrop
echo "Data" > $M0/FILE
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
TEST touch $M0/f1 TEST touch $M0/f1
gfid_f1=$(gf_get_gfid_xattr $B0/${V0}0/f1) gfid_f1=$(gf_get_gfid_xattr $B0/${V0}0/f1)
gfid_str_f1=$(gf_gfid_xattr_to_str $gfid_f1) gfid_str_f1=$(gf_gfid_xattr_to_str $gfid_f1)
# Remove gfid xattr and .glusterfs hard link from 2nd brick. This simulates a # Remove gfid xattr and .glusterfs hard link from 2nd brick. This simulates a
# brick crash at the point where file got created but no xattrs were set. # brick crash at the point where file got created but no xattrs were set.
TEST setfattr -x trusted.gfid $B0/${V0}1/f1 TEST setfattr -x trusted.gfid $B0/${V0}1/f1
TEST rm $B0/${V0}1/.glusterfs/${gfid_str_f1:0:2}/${gfid_str_f1:2:2}/$gfid_str_f1 TEST rm $B0/${V0}1/.glusterfs/${gfid_str_f1:0:2}/${gfid_str_f1:2:2}/$gfid_str_f1
skipping to change at line 58 skipping to change at line 55
gfid_f2=$(gf_get_gfid_xattr $B0/${V0}0/dir/f2) gfid_f2=$(gf_get_gfid_xattr $B0/${V0}0/dir/f2)
gfid_str_f2=$(gf_gfid_xattr_to_str $gfid_f2) gfid_str_f2=$(gf_gfid_xattr_to_str $gfid_f2)
# Remove gfid xattr and .glusterfs hard link from 2nd brick. This simulates a # Remove gfid xattr and .glusterfs hard link from 2nd brick. This simulates a
# brick crash at the point where file got created but no xattrs were set. # brick crash at the point where file got created but no xattrs were set.
TEST setfattr -x trusted.gfid $B0/${V0}1/dir/f2 TEST setfattr -x trusted.gfid $B0/${V0}1/dir/f2
TEST rm $B0/${V0}1/.glusterfs/${gfid_str_f2:0:2}/${gfid_str_f2:2:2}/$gfid_str_f2 TEST rm $B0/${V0}1/.glusterfs/${gfid_str_f2:0:2}/${gfid_str_f2:2:2}/$gfid_str_f2
#Now simulate setting of pending entry xattr on parent dir of 1st brick. #Now simulate setting of pending entry xattr on parent dir of 1st brick.
TEST setfattr -n trusted.afr.$V0-client-1 -v 0x000000010000000000000001 $B0/${V0 }0/dir TEST setfattr -n trusted.afr.$V0-client-1 -v 0x000000010000000000000001 $B0/${V0 }0/dir
create_brick_xattrop_entry $B0/${V0}0 dir TEST create_brick_xattrop_entry $B0/${V0}0 dir
# storage/posix considers that a file without gfid changed less than a second # storage/posix considers that a file without gfid changed less than a second
# before doesn't exist, so we need to wait for a second to force posix to # before doesn't exist, so we need to wait for a second to force posix to
# consider that this is a valid file but without gfid. # consider that this is a valid file but without gfid.
sleep 2 sleep 2
#Trigger entry-heal via shd #Trigger entry-heal via shd
TEST $CLI volume set $V0 self-heal-daemon on TEST $CLI volume set $V0 self-heal-daemon on
EXPECT_WITHIN $PROCESS_UP_TIMEOUT "Y" glustershd_up_status EXPECT_WITHIN $PROCESS_UP_TIMEOUT "Y" glustershd_up_status
EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status_in_shd $V0 0 EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status_in_shd $V0 0
 End of changes. 2 change blocks. 
4 lines changed or deleted 1 lines changed or added

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