summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2015-12-08 14:31:30 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-12-10 20:40:49 -0800
commit3a01c1b36724ad4c9148540b56a26b3c1799c583 (patch)
tree6ddeb43969d6f88bbe09694315be304fa7dc4475 /tests
parentfc07e9c90db11bbbadf341d0720a874a8cd1fdc5 (diff)
tests, shard: Remove dependency on strict-write-ordering
Change-Id: I00171a77bdefb1c2e7e4610cb0ade5679bdb761f BUG: 1289840 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/12915 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs/shard/bug-1251824.t7
-rw-r--r--tests/bugs/shard/bug-1256580.t3
-rw-r--r--tests/bugs/shard/bug-1258334.t3
-rw-r--r--tests/bugs/shard/bug-1259651.t3
-rw-r--r--tests/bugs/shard/bug-1272986.t3
5 files changed, 9 insertions, 10 deletions
diff --git a/tests/bugs/shard/bug-1251824.t b/tests/bugs/shard/bug-1251824.t
index 9e6ceaa8161..cdb6c5e9f72 100644
--- a/tests/bugs/shard/bug-1251824.t
+++ b/tests/bugs/shard/bug-1251824.t
@@ -7,9 +7,8 @@ cleanup;
TEST glusterd
TEST pidof glusterd
-TEST $CLI volume create $V0 $H0:$B0/${V0}{0,1}
+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 performance.strict-write-ordering on
TEST $CLI volume start $V0
TEST glusterfs --volfile-id=$V0 --volfile-server=$H0 $M0
@@ -41,6 +40,10 @@ EXPECT "root" echo `find $B0/${V0}0 -name .shard | xargs stat -c %U`
EXPECT "root" echo `find $B0/${V0}0 -name .shard | xargs stat -c %G`
EXPECT "root" echo `find $B0/${V0}1 -name .shard | xargs stat -c %U`
EXPECT "root" echo `find $B0/${V0}1 -name .shard | xargs stat -c %G`
+EXPECT "root" echo `find $B0/${V0}2 -name .shard | xargs stat -c %U`
+EXPECT "root" echo `find $B0/${V0}2 -name .shard | xargs stat -c %G`
+EXPECT "root" echo `find $B0/${V0}3 -name .shard | xargs stat -c %U`
+EXPECT "root" echo `find $B0/${V0}3 -name .shard | xargs stat -c %G`
# Write 6M of data on bar as root.
TEST dd if=/dev/zero of=$M0/bar bs=1M count=6
diff --git a/tests/bugs/shard/bug-1256580.t b/tests/bugs/shard/bug-1256580.t
index 93762c115ce..279fcc54e48 100644
--- a/tests/bugs/shard/bug-1256580.t
+++ b/tests/bugs/shard/bug-1256580.t
@@ -6,9 +6,8 @@ cleanup
TEST glusterd
TEST pidof glusterd
-TEST $CLI volume create $V0 $H0:$B0/${V0}{0,1}
+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 performance.strict-write-ordering on
TEST $CLI volume start $V0
TEST glusterfs --volfile-id=$V0 --volfile-server=$H0 $M0
diff --git a/tests/bugs/shard/bug-1258334.t b/tests/bugs/shard/bug-1258334.t
index c89caaba3f7..94ed822aae8 100644
--- a/tests/bugs/shard/bug-1258334.t
+++ b/tests/bugs/shard/bug-1258334.t
@@ -6,9 +6,8 @@ cleanup
TEST glusterd
TEST pidof glusterd
-TEST $CLI volume create $V0 $H0:$B0/${V0}{0,1}
+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 performance.strict-write-ordering on
TEST $CLI volume start $V0
TEST glusterfs --volfile-id=$V0 --volfile-server=$H0 $M0
diff --git a/tests/bugs/shard/bug-1259651.t b/tests/bugs/shard/bug-1259651.t
index a1742dea7dd..72856fdbaad 100644
--- a/tests/bugs/shard/bug-1259651.t
+++ b/tests/bugs/shard/bug-1259651.t
@@ -6,7 +6,7 @@ cleanup
TEST glusterd
TEST pidof glusterd
-TEST $CLI volume create $V0 $H0:$B0/${V0}{0,1}
+TEST $CLI volume create $V0 replica 2 $H0:$B0/${V0}{0,1,2,3}
TEST $CLI volume start $V0
TEST glusterfs --volfile-id=$V0 --volfile-server=$H0 $M0
@@ -24,7 +24,6 @@ md5sum_file_plain=$(md5sum $M0/dir/file_plain | awk '{print $1}')
# Now enable sharding on the volume.
TEST $CLI volume set $V0 features.shard on
-TEST $CLI volume set $V0 performance.strict-write-ordering on
# Create a sharded file called "file_sharded"
TEST touch $M0/dir/file_sharded
diff --git a/tests/bugs/shard/bug-1272986.t b/tests/bugs/shard/bug-1272986.t
index c041ce49482..762887051fa 100644
--- a/tests/bugs/shard/bug-1272986.t
+++ b/tests/bugs/shard/bug-1272986.t
@@ -6,9 +6,8 @@ cleanup
TEST glusterd
TEST pidof glusterd
-TEST $CLI volume create $V0 $H0:$B0/${V0}{0,1}
+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 performance.strict-write-ordering on
TEST $CLI volume start $V0
# $M0 is where the reads will be done and $M1 is where files will be created,