[Bugs] [Bug 1378778] Add a test script for compound fops changes in AFR
bugzilla at redhat.com
bugzilla at redhat.com
Fri Sep 23 10:58:22 UTC 2016
https://bugzilla.redhat.com/show_bug.cgi?id=1378778
--- Comment #1 from Krutika Dhananjay <kdhananj at redhat.com> ---
All is not well in the compound fops world. I wrote and ran the following
simple test on master:
<script>
0 #!/bin/bash
1 . $(dirname $0)/../../include.rc
2 . $(dirname $0)/../../volume.rc
3
4 cleanup
5
6 TEST glusterd
7 TEST pidof glusterd
8 TEST $CLI volume create $V0 replica 3 $H0:$B0/${V0}{0,1,2}
9 TEST $CLI volume start $V0
10 TEST $GFS --volfile-id=$V0 --volfile-server=$H0 $M0
11
12 TEST dd if=/dev/urandom of=$M0/file bs=1024 count=10 2>/dev/null
13 md5sum_file=$(md5sum $M0/file | awk '{print $1}')
14
15 TEST $CLI volume set $V0 cluster.use-compound-fops on
16
17 TEST dd if=$M0/file of=$M0/file-copy bs=1024 count=10 2>/dev/null
18
19 EXPECT_WITHIN $UMOUNT_TIMEOUT "Y" force_umount $M0
20 TEST $GFS --volfile-id=$V0 --volfile-server=$H0 $M0
21
22 EXPECT "$md5sum_file" echo `md5sum $M0/file-copy | awk '{print $1}'`
23
24 EXPECT_WITHIN $UMOUNT_TIMEOUT "Y" force_umount $M0
25 TEST $CLI volume stop $V0
26 TEST $CLI volume delete $V0
27
28 cleanup
</script>
The md5sum comparison at line 22 fails. The script runs fine when I "comment
out" line 15, implying the bug is in compound fops.
Will post my findings after the issue is RC'd.
-Krutika
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list