From 0189e0e707cfc5f3172eb725c0b4640952e33db3 Mon Sep 17 00:00:00 2001 From: Pranith Kumar Karampuri Date: Tue, 15 Apr 2025 17:21:11 +0530 Subject: [PATCH] Force reads to come to the mount Do odirect reads to make sure the calls come till EC Fixes: #4515 Change-Id: I87d3812a63080ecf4a89a89a692f63fa7d787df7 Signed-off-by: Pranith Kumar Karampuri --- tests/basic/ec/ec-read-policy.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/basic/ec/ec-read-policy.t b/tests/basic/ec/ec-read-policy.t index fe6fe6576e7..e8bd9630963 100644 --- a/tests/basic/ec/ec-read-policy.t +++ b/tests/basic/ec/ec-read-policy.t @@ -17,7 +17,7 @@ TEST $CLI volume heal $V0 disable TEST $CLI volume start $V0 #Disable all caching -TEST glusterfs --direct-io-mode=yes --entry-timeout=0 --attribute-timeout=0 -s $H0 --volfile-id $V0 $M0 +TEST glusterfs --entry-timeout=0 --attribute-timeout=0 -s $H0 --volfile-id $V0 $M0 EXPECT_WITHIN $CHILD_UP_TIMEOUT "6" ec_child_up_count $V0 0 #TEST volume operations work fine @@ -34,7 +34,7 @@ EXPECT_WITHIN $CONFIG_UPDATE_TIMEOUT "round-robin" mount_get_option_value $M0 $V TEST $CLI volume profile $V0 start TEST dd if=/dev/zero of=$M0/1 bs=1M count=4 #Perform reads now from file on the mount, this only tests dispatch_min -TEST dd if=$M0/1 of=/dev/null bs=1M count=4 +TEST dd if=$M0/1 of=/dev/null bs=1M count=4 iflag=direct #TEST that reads are executed on all bricks rr_reads=$($CLI volume profile $V0 info cumulative| grep -w READ | wc -l) EXPECT "^6$" echo $rr_reads @@ -44,7 +44,7 @@ TEST $CLI volume set $V0 disperse.read-policy gfid-hash EXPECT_WITHIN $CONFIG_UPDATE_TIMEOUT "gfid-hash" mount_get_option_value $M0 $V0-disperse-0 read-policy #Perform reads now from file on the mount, this only tests dispatch_min -TEST dd if=$M0/1 of=/dev/null bs=1M count=4 +TEST dd if=$M0/1 of=/dev/null bs=1M count=4 iflag=direct #TEST that reads are executed on all bricks gh_reads=$($CLI volume profile $V0 info cumulative| grep -w READ | wc -l) EXPECT "^4$" echo $gh_reads