summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnush Shetty <anush@gluster.com>2009-11-17 00:53:47 -0800
committerVijay Bellur <vijay@gluster.com>2009-12-01 18:25:41 +0530
commit79f87dcc8e97b3eec283be94c725b074287e6e00 (patch)
tree9845718088e5ed3d628fea99fad5fc0cfed34c33
parent2167d8999350c22bba521aca75b4f0aea6c2d524 (diff)
Bug #310
Signed-off-by: Vijay Bellur <vijay@gluster.com>
-rwxr-xr-x310/regr/spec_files/client1.vol27
-rwxr-xr-x310/regr/spec_files/server1.vol25
-rwxr-xr-x310/regr/spec_files/server2.vol25
-rwxr-xr-x310/regr/testcase41
4 files changed, 118 insertions, 0 deletions
diff --git a/310/regr/spec_files/client1.vol b/310/regr/spec_files/client1.vol
new file mode 100755
index 0000000..9ff8d95
--- /dev/null
+++ b/310/regr/spec_files/client1.vol
@@ -0,0 +1,27 @@
+volume remote1
+ type protocol/client
+ option transport-type tcp
+ option remote-host 127.0.0.1
+ option transport.socket.remote-port 1500
+ option remote-subvolume brick
+end-volume
+
+volume remote2
+ type protocol/client
+ option transport-type tcp
+ option remote-host 127.0.0.1
+ option transport.socket.remote-port 1600
+ option remote-subvolume brick
+end-volume
+
+volume replicate
+ type cluster/replicate
+ subvolumes remote1 remote2
+end-volume
+
+volume writebehind
+ type performance/write-behind
+ option window-size 1MB
+ subvolumes replicate
+end-volume
+
diff --git a/310/regr/spec_files/server1.vol b/310/regr/spec_files/server1.vol
new file mode 100755
index 0000000..4c6d133
--- /dev/null
+++ b/310/regr/spec_files/server1.vol
@@ -0,0 +1,25 @@
+# file: /etc/glusterfs/glusterfs-server.vol
+volume posix
+ type storage/posix
+ option directory /jbod/regr/226/export1
+end-volume
+
+volume locks
+ type features/locks
+ subvolumes posix
+end-volume
+
+volume brick
+ type performance/io-threads
+ option thread-count 8
+ subvolumes locks
+end-volume
+
+volume server
+ type protocol/server
+ option transport-type tcp
+ option auth.addr.brick.allow *
+ option transport.socket.listen-port 1600
+ subvolumes brick
+end-volume
+
diff --git a/310/regr/spec_files/server2.vol b/310/regr/spec_files/server2.vol
new file mode 100755
index 0000000..9901b04
--- /dev/null
+++ b/310/regr/spec_files/server2.vol
@@ -0,0 +1,25 @@
+# file: /etc/glusterfs/glusterfs-server.vol
+volume posix
+ type storage/posix
+ option directory /jbod/regr/226/export2
+end-volume
+
+volume locks
+ type features/locks
+ subvolumes posix
+end-volume
+
+volume brick
+ type performance/io-threads
+ option thread-count 8
+ subvolumes locks
+end-volume
+
+volume server
+ type protocol/server
+ option transport-type tcp
+ option auth.addr.brick.allow *
+ option transport.socket.listen-port 1500
+ subvolumes brick
+end-volume
+
diff --git a/310/regr/testcase b/310/regr/testcase
new file mode 100755
index 0000000..b33c861
--- /dev/null
+++ b/310/regr/testcase
@@ -0,0 +1,41 @@
+#!/bin/bash
+#
+# Copyright (c) 2006-2009 Gluster, Inc. <http://www.gluster.com>
+# This file is part of GlusterFS.
+#
+# GlusterFS is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published
+# by the Free Software Foundation; either version 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterFS is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
+
+description="# [ 310 ] While trying to create a file on replicate with write behind set-up, client crashes"
+comments="# [ 310 ] While trying to create a file on replicate with write behind set-up, client crashes"
+
+source ../../init
+
+start_glusterfs
+
+
+cd $MOUNTDIR/client1
+
+touch dot 2> tmpfile
+
+if [ $(grep "Transport endpoint not connected" tmpfile | wc -l) -ne 0 ];then
+ not_ok $description
+ comment $comments
+else
+ ok $description
+fi
+
+rm tmpfile
+## Testcase End
+cleanup_glusterfs