summaryrefslogtreecommitdiffstats
path: root/tests/bugs/bug-953887.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/bug-953887.t')
-rw-r--r--tests/bugs/bug-953887.t23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/bugs/bug-953887.t b/tests/bugs/bug-953887.t
new file mode 100644
index 00000000000..d926473efc4
--- /dev/null
+++ b/tests/bugs/bug-953887.t
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+. $(dirname $0)/../include.rc
+. $(dirname $0)/../volume.rc
+. $(dirname $0)/../fileio.rc
+
+cleanup;
+
+TEST glusterd
+TEST pidof glusterd
+TEST $CLI volume create $V0 replica 2 $H0:$B0/${V0}{0,1}
+TEST $CLI volume start $V0
+TEST glusterfs --volfile-id=/$V0 --volfile-server=$H0 $M0
+TEST touch $M0/10
+TEST fd=`fd_available`
+TEST fd_open $fd 'w' $M0/10
+TEST gluster volume add-brick $V0 $H0:$B0/${V0}{2,3}
+TEST gluster volume rebalance $V0 start
+EXPECT_WITHIN 15 "completed" rebalance_status_field $V0
+TEST cat $M0/10
+TEST fd_write $fd "abc"
+EXPECT "abc" echo "$(cat $M0/10)"
+cleanup