Skip to content

Commit 0189e0e

Browse files
committed
Force reads to come to the mount
Do odirect reads to make sure the calls come till EC Fixes: gluster#4515 Change-Id: I87d3812a63080ecf4a89a89a692f63fa7d787df7 Signed-off-by: Pranith Kumar Karampuri <[email protected]>
1 parent a9f3973 commit 0189e0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/basic/ec/ec-read-policy.t

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ TEST $CLI volume heal $V0 disable
1717
TEST $CLI volume start $V0
1818

1919
#Disable all caching
20-
TEST glusterfs --direct-io-mode=yes --entry-timeout=0 --attribute-timeout=0 -s $H0 --volfile-id $V0 $M0
20+
TEST glusterfs --entry-timeout=0 --attribute-timeout=0 -s $H0 --volfile-id $V0 $M0
2121
EXPECT_WITHIN $CHILD_UP_TIMEOUT "6" ec_child_up_count $V0 0
2222
#TEST volume operations work fine
2323

@@ -34,7 +34,7 @@ EXPECT_WITHIN $CONFIG_UPDATE_TIMEOUT "round-robin" mount_get_option_value $M0 $V
3434
TEST $CLI volume profile $V0 start
3535
TEST dd if=/dev/zero of=$M0/1 bs=1M count=4
3636
#Perform reads now from file on the mount, this only tests dispatch_min
37-
TEST dd if=$M0/1 of=/dev/null bs=1M count=4
37+
TEST dd if=$M0/1 of=/dev/null bs=1M count=4 iflag=direct
3838
#TEST that reads are executed on all bricks
3939
rr_reads=$($CLI volume profile $V0 info cumulative| grep -w READ | wc -l)
4040
EXPECT "^6$" echo $rr_reads
@@ -44,7 +44,7 @@ TEST $CLI volume set $V0 disperse.read-policy gfid-hash
4444
EXPECT_WITHIN $CONFIG_UPDATE_TIMEOUT "gfid-hash" mount_get_option_value $M0 $V0-disperse-0 read-policy
4545

4646
#Perform reads now from file on the mount, this only tests dispatch_min
47-
TEST dd if=$M0/1 of=/dev/null bs=1M count=4
47+
TEST dd if=$M0/1 of=/dev/null bs=1M count=4 iflag=direct
4848
#TEST that reads are executed on all bricks
4949
gh_reads=$($CLI volume profile $V0 info cumulative| grep -w READ | wc -l)
5050
EXPECT "^4$" echo $gh_reads

0 commit comments

Comments
 (0)