"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/bugs/replicate/mdata-heal-no-xattrs.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.

mdata-heal-no-xattrs.t  (glusterfs-8.4):mdata-heal-no-xattrs.t  (glusterfs-8.5)
#!/bin/bash #!/bin/bash
. $(dirname $0)/../../include.rc . $(dirname $0)/../../include.rc
. $(dirname $0)/../../volume.rc . $(dirname $0)/../../volume.rc
. $(dirname $0)/../../afr.rc
cleanup; cleanup;
TEST glusterd TEST glusterd
TEST pidof glusterd TEST pidof glusterd
TEST $CLI volume create $V0 replica 3 $H0:$B0/${V0}{0,1,2}; TEST $CLI volume create $V0 replica 3 $H0:$B0/${V0}{0,1,2};
TEST $CLI volume set $V0 cluster.self-heal-daemon off TEST $CLI volume set $V0 cluster.self-heal-daemon off
TEST $CLI volume start $V0 TEST $CLI volume start $V0
TEST glusterfs --volfile-id=/$V0 --volfile-server=$H0 $M0 --attribute-timeout=0 --entry-timeout=0 TEST glusterfs --volfile-id=/$V0 --volfile-server=$H0 $M0 --attribute-timeout=0 --entry-timeout=0
EXPECT_WITHIN $PROCESS_UP_TIMEOUT "1" afr_child_up_status $V0 0 EXPECT_WITHIN $PROCESS_UP_TIMEOUT "1" afr_child_up_status $V0 0
skipping to change at line 26 skipping to change at line 27
EXPECT_WITHIN $PROCESS_UP_TIMEOUT "1" afr_child_up_status $V0 2 EXPECT_WITHIN $PROCESS_UP_TIMEOUT "1" afr_child_up_status $V0 2
echo "Data">$M0/FILE echo "Data">$M0/FILE
ret=$? ret=$?
TEST [ $ret -eq 0 ] TEST [ $ret -eq 0 ]
# Change permission on brick-0: simulates the case where there is metadata # Change permission on brick-0: simulates the case where there is metadata
# mismatch but no pending xattrs. This brick will become the source for heal. # mismatch but no pending xattrs. This brick will become the source for heal.
TEST chmod +x $B0/$V0"0"/FILE TEST chmod +x $B0/$V0"0"/FILE
# Add gfid to xattrop # Add gfid to xattrop
xattrop_b0=$(afr_get_index_path $B0/$V0"0") TEST create_brick_xattrop_entry $B0/$V0"0" FILE
base_entry_b0=`ls $xattrop_b0`
gfid_str_FILE=$(gf_gfid_xattr_to_str $(gf_get_gfid_xattr $B0/$V0"0"/FILE))
TEST ln $xattrop_b0/$base_entry_b0 $xattrop_b0/$gfid_str_FILE
EXPECT_WITHIN $HEAL_TIMEOUT "^1$" get_pending_heal_count $V0 EXPECT_WITHIN $HEAL_TIMEOUT "^1$" get_pending_heal_count $V0
TEST $CLI volume set $V0 cluster.self-heal-daemon on TEST $CLI volume set $V0 cluster.self-heal-daemon on
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
EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status_in_shd $V0 1 EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status_in_shd $V0 1
EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status_in_shd $V0 2 EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status_in_shd $V0 2
TEST $CLI volume heal $V0 TEST $CLI volume heal $V0
EXPECT_WITHIN $HEAL_TIMEOUT "^0$" get_pending_heal_count $V0 EXPECT_WITHIN $HEAL_TIMEOUT "^0$" get_pending_heal_count $V0
# Brick-0 should contain xattrs blaming other 2 bricks. # Brick-0 should contain xattrs blaming other 2 bricks.
 End of changes. 2 change blocks. 
4 lines changed or deleted 2 lines changed or added

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