"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/00-geo-rep/georep-upgrade.t" between
glusterfs-9.3.tar.gz and glusterfs-9.4.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).

georep-upgrade.t  (glusterfs-9.3):georep-upgrade.t  (glusterfs-9.4)
skipping to change at line 50 skipping to change at line 50
EXPECT '1' echo $(grep $data1 $htime_file1 | wc -l) EXPECT '1' echo $(grep $data1 $htime_file1 | wc -l)
EXPECT '1' echo $(grep $data2 $htime_file2 | wc -l) EXPECT '1' echo $(grep $data2 $htime_file2 | wc -l)
EXPECT '1' echo $(ls /bricks/brick1/.glusterfs/changelogs/CHANGELOG.$epoch1 | wc -l) EXPECT '1' echo $(ls /bricks/brick1/.glusterfs/changelogs/CHANGELOG.$epoch1 | wc -l)
EXPECT '1' echo $(ls /bricks/brick1/.glusterfs/changelogs/htime/HTIME.$epoch1 | wc -l) EXPECT '1' echo $(ls /bricks/brick1/.glusterfs/changelogs/htime/HTIME.$epoch1 | wc -l)
EXPECT '1' echo $(ls /bricks/brick1/.glusterfs/changelogs/CHANGELOG.$epoch2 | wc -l) EXPECT '1' echo $(ls /bricks/brick1/.glusterfs/changelogs/CHANGELOG.$epoch2 | wc -l)
EXPECT '1' echo $(ls /bricks/brick1/.glusterfs/changelogs/htime/HTIME.$epoch2 | wc -l) EXPECT '1' echo $(ls /bricks/brick1/.glusterfs/changelogs/htime/HTIME.$epoch2 | wc -l)
################################################################################ ############### ################################################################################ ###############
#Upgrade #Upgrade
################################################################################ ############### ################################################################################ ###############
### This needed to be fixed as this very vague finding a file with name in '/' TEST python3 extras/glusterfs-georep-upgrade.py $brick
### multiple file with same name can exist
### for temp fix picking only 1st result
TEST upgrade_script=$(find / -type f -name glusterfs-georep-upgrade.py -print |
head -n 1)
TEST python3 $upgrade_script $brick
################################################################################ ############### ################################################################################ ###############
#After upgrade #After upgrade
################################################################################ ############### ################################################################################ ###############
echo "After upgrade:" echo "After upgrade:"
EXPECT '1' echo $(grep $updated_data1 $htime_file1 | wc -l) EXPECT '1' echo $(grep $updated_data1 $htime_file1 | wc -l)
EXPECT '1' echo $(grep $updated_data2 $htime_file2 | wc -l) EXPECT '1' echo $(grep $updated_data2 $htime_file2 | wc -l)
#Check directory structure inside changelogs #Check directory structure inside changelogs
TEST ! ls /bricks/brick1/.glusterfs/changelogs/CHANGELOG.$epoch1 TEST ! ls /bricks/brick1/.glusterfs/changelogs/CHANGELOG.$epoch1
 End of changes. 1 change blocks. 
6 lines changed or deleted 1 lines changed or added

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