"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/bugs/replicate/bug-1756938-replica-3-sbrain-cli.t" between
glusterfs-8.4.tar.gz and glusterfs-8.5.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 8.x.

bug-1756938-replica-3-sbrain-cli.t  (glusterfs-8.4):bug-1756938-replica-3-sbrain-cli.t  (glusterfs-8.5)
skipping to change at line 82 skipping to change at line 82
gfid_f4=$(gf_gfid_xattr_to_str $(gf_get_gfid_xattr $B0/${V0}0/file4)) gfid_f4=$(gf_gfid_xattr_to_str $(gf_get_gfid_xattr $B0/${V0}0/file4))
TEST setfattr -n trusted.afr.$V0-client-1 -v 0x000000010000000100000000 $B0/${V0 }0/.shard/$gfid_f4.1 TEST setfattr -n trusted.afr.$V0-client-1 -v 0x000000010000000100000000 $B0/${V0 }0/.shard/$gfid_f4.1
TEST setfattr -n trusted.afr.$V0-client-2 -v 0x000000010000000100000000 $B0/${V0 }0/.shard/$gfid_f4.1 TEST setfattr -n trusted.afr.$V0-client-2 -v 0x000000010000000100000000 $B0/${V0 }0/.shard/$gfid_f4.1
TEST setfattr -n trusted.afr.$V0-client-0 -v 0x000000010000000100000000 $B0/${V0 }1/.shard/$gfid_f4.1 TEST setfattr -n trusted.afr.$V0-client-0 -v 0x000000010000000100000000 $B0/${V0 }1/.shard/$gfid_f4.1
TEST setfattr -n trusted.afr.$V0-client-2 -v 0x000000010000000100000000 $B0/${V0 }1/.shard/$gfid_f4.1 TEST setfattr -n trusted.afr.$V0-client-2 -v 0x000000010000000100000000 $B0/${V0 }1/.shard/$gfid_f4.1
TEST setfattr -n trusted.afr.$V0-client-0 -v 0x000000010000000100000000 $B0/${V0 }2/.shard/$gfid_f4.1 TEST setfattr -n trusted.afr.$V0-client-0 -v 0x000000010000000100000000 $B0/${V0 }2/.shard/$gfid_f4.1
TEST setfattr -n trusted.afr.$V0-client-1 -v 0x000000010000000100000000 $B0/${V0 }2/.shard/$gfid_f4.1 TEST setfattr -n trusted.afr.$V0-client-1 -v 0x000000010000000100000000 $B0/${V0 }2/.shard/$gfid_f4.1
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
#Add entry to xattrop dir on first brick and check for split-brain. #Add entry to xattrop dir on first brick and check for split-brain.
xattrop_dir0=$(afr_get_index_path $B0/$V0"0")
base_entry_b0=`ls $xattrop_dir0`
gfid_f1=$(gf_gfid_xattr_to_str $(gf_get_gfid_xattr $B0/$V0"0"/file1))
TEST ln $xattrop_dir0/$base_entry_b0 $xattrop_dir0/$gfid_f1
gfid_f2_shard1=$(gf_gfid_xattr_to_str $(gf_get_gfid_xattr $B0/$V0"0"/.shard/$gfi d_f2.1)) gfid_f2_shard1=$(gf_gfid_xattr_to_str $(gf_get_gfid_xattr $B0/$V0"0"/.shard/$gfi d_f2.1))
TEST ln $xattrop_dir0/$base_entry_b0 $xattrop_dir0/$gfid_f2_shard1
gfid_f3=$(gf_gfid_xattr_to_str $(gf_get_gfid_xattr $B0/${V0}0/file3)) gfid_f3=$(gf_gfid_xattr_to_str $(gf_get_gfid_xattr $B0/${V0}0/file3))
gfid_f3_shard1=$(gf_gfid_xattr_to_str $(gf_get_gfid_xattr $B0/$V0"0"/.shard/$gfi TEST create_brick_xattrop_entry $B0/$V0"0" file1 .shard/$gfid_f2.1 .shard/$gfid_
d_f3.1)) f3.1 .shard/$gfid_f4.1
TEST ln $xattrop_dir0/$base_entry_b0 $xattrop_dir0/$gfid_f3_shard1
gfid_f4_shard1=$(gf_gfid_xattr_to_str $(gf_get_gfid_xattr $B0/$V0"0"/.shard/$gfi
d_f4.1))
TEST ln $xattrop_dir0/$base_entry_b0 $xattrop_dir0/$gfid_f4_shard1
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
#gfid split-brain won't show up in split-brain count. #gfid split-brain won't show up in split-brain count.
EXPECT "3" afr_get_split_brain_count $V0 EXPECT "3" afr_get_split_brain_count $V0
EXPECT_NOT "^0$" get_pending_heal_count $V0 EXPECT_NOT "^0$" get_pending_heal_count $V0
#Resolve split-brains #Resolve split-brains
TEST $CLI volume heal $V0 split-brain source-brick $H0:$B0/${V0}1 /file1 TEST $CLI volume heal $V0 split-brain source-brick $H0:$B0/${V0}1 /file1
GFIDSTR="gfid:$gfid_f2_shard1" GFIDSTR="gfid:$gfid_f2_shard1"
TEST $CLI volume heal $V0 split-brain source-brick $H0:$B0/${V0}1 $GFIDSTR TEST $CLI volume heal $V0 split-brain source-brick $H0:$B0/${V0}1 $GFIDSTR
 End of changes. 3 change blocks. 
13 lines changed or deleted 2 lines changed or added

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