summaryrefslogtreecommitdiffstats
path: root/tests/bugs/bug-1022055.t
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2013-10-22 20:18:28 +0530
committerAnand Avati <avati@redhat.com>2013-10-30 22:19:13 -0700
commit5e96e7d4a976975d8eac0bbf8d0d7ea663665bce (patch)
tree16dc00f0e684df862bd09bf4e77b5583c71170ff /tests/bugs/bug-1022055.t
parentfc86b3a22ab0519652f74ef8a75cf1cbfa290fb8 (diff)
glusterd: Release big-lock after log-rotate handler returns
... so that subsequent volume commands don't block waiting forever, for the lock to be released. Change-Id: I24b5ec47f6982900ab74ff1b492d523f31ecfb7f BUG: 1022055 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/6122 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'tests/bugs/bug-1022055.t')
-rwxr-xr-xtests/bugs/bug-1022055.t26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/bugs/bug-1022055.t b/tests/bugs/bug-1022055.t
new file mode 100755
index 00000000000..c2f4218bb20
--- /dev/null
+++ b/tests/bugs/bug-1022055.t
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+. $(dirname $0)/../include.rc
+. $(dirname $0)/../cluster.rc
+
+function check_peers {
+ $CLI_1 peer status | grep 'Peer in Cluster (Connected)' | wc -l
+}
+
+cleanup;
+
+TEST launch_cluster 2;
+
+TEST $CLI_1 peer probe $H2;
+
+EXPECT_WITHIN 20 1 check_peers;
+
+TEST $CLI_1 volume create $V0 $H1:$B1/$V0 $H2:$B2/$V0;
+
+TEST $CLI_1 volume start $V0;
+
+TEST $CLI_1 volume log rotate $V0;
+
+TEST $CLI_1 volume status;
+
+cleanup;