From 8cde14a537f0112400744d518ed196eb8fa232f2 Mon Sep 17 00:00:00 2001 From: Krutika Dhananjay Date: Wed, 19 Dec 2018 17:57:58 +0530 Subject: tests: Fix zero-flag.t script The default value of shard-block-size was changed from 4MB to 64MB sometime back. The script "fallocate"s a 6MB file and expects it to have 1 shard under .shard. This worked when the shard-block-size was 4MB. With the default value now at 64MB, file "file1" won't have any shards under .shard and the stat on the 1st shard's path fails with ENOENT. Changed the script to explicitly set shard-block-size to 4MB. Change-Id: I7f1785922287d16d74c95fa57cbbe12e6e66e4f7 fixes: bz#1656264 Signed-off-by: Krutika Dhananjay --- tests/bugs/shard/zero-flag.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/bugs/shard') diff --git a/tests/bugs/shard/zero-flag.t b/tests/bugs/shard/zero-flag.t index 50d80ea6abf..1f39787ab9f 100644 --- a/tests/bugs/shard/zero-flag.t +++ b/tests/bugs/shard/zero-flag.t @@ -14,6 +14,7 @@ TEST glusterd TEST pidof glusterd TEST $CLI volume create $V0 replica 2 $H0:$B0/${V0}{0,1,2,3} TEST $CLI volume set $V0 features.shard on +TEST $CLI volume set $V0 features.shard-block-size 4MB TEST $CLI volume start $V0 TEST $GFS --volfile-id=$V0 --volfile-server=$H0 $M0 @@ -73,4 +74,3 @@ TEST $CLI volume stop $V0 TEST $CLI volume delete $V0 rm -f $(dirname $0)/shard-fallocate cleanup -#G_TESTDEF_TEST_STATUS_CENTOS6=BAD_TEST,BUG=1656264 -- cgit