summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnush Shetty <anush@gluster.com>2009-11-25 21:54:55 -0800
committerVijay Bellur <vijay@gluster.com>2009-12-01 19:05:56 +0530
commit407beff649bae9e61b2994167699f0c737884aad (patch)
treed6c59c3de2f51b0cf2dff49d667561152ddf3458
parent91a35a989237159cb545408c42d574fbfb437168 (diff)
Bug #378
Signed-off-by: Vijay Bellur <vijay@gluster.com>
-rw-r--r--378/regr/spec_files/client1.vol41
-rw-r--r--378/regr/spec_files/server1.vol23
-rw-r--r--378/regr/spec_files/server2.vol23
-rw-r--r--378/regr/spec_files/server3.vol23
-rw-r--r--378/regr/spec_files/server4.vol23
-rwxr-xr-x378/regr/testcase40
6 files changed, 173 insertions, 0 deletions
diff --git a/378/regr/spec_files/client1.vol b/378/regr/spec_files/client1.vol
new file mode 100644
index 0000000..cada574
--- /dev/null
+++ b/378/regr/spec_files/client1.vol
@@ -0,0 +1,41 @@
+volume remote1
+ type protocol/client
+ option transport-type tcp
+ option remote-port 9350
+ option remote-host 127.0.0.1
+ option remote-subvolume brick
+end-volume
+
+volume remote2
+ type protocol/client
+ option transport-type tcp
+ option remote-port 9351
+ option remote-host 127.0.0.1
+ option remote-subvolume brick
+end-volume
+
+volume remote3
+ type protocol/client
+ option transport-type tcp
+ option remote-port 9352
+ option remote-host 127.0.0.1
+ option remote-subvolume brick
+end-volume
+
+volume remote4
+ type protocol/client
+ option transport-type tcp
+ option remote-port 9353
+ option remote-host 127.0.0.1
+ option remote-subvolume brick
+end-volume
+
+volume replicate1
+ type cluster/replicate
+ subvolumes remote1 remote2 remote3 remote4
+end-volume
+
+volume trace
+ type debug/trace
+ subvolumes replicate1
+end-volume
diff --git a/378/regr/spec_files/server1.vol b/378/regr/spec_files/server1.vol
new file mode 100644
index 0000000..97b2584
--- /dev/null
+++ b/378/regr/spec_files/server1.vol
@@ -0,0 +1,23 @@
+volume posix
+ type storage/posix
+ option directory /share/tickets/309/regr/export/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 listen-port 9350
+ option auth.addr.brick.allow *
+ subvolumes brick
+end-volume
diff --git a/378/regr/spec_files/server2.vol b/378/regr/spec_files/server2.vol
new file mode 100644
index 0000000..dec26b8
--- /dev/null
+++ b/378/regr/spec_files/server2.vol
@@ -0,0 +1,23 @@
+volume posix
+ type storage/posix
+ option directory /share/tickets/309/regr/export/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 listen-port 9351
+ option auth.addr.brick.allow *
+ subvolumes brick
+end-volume
diff --git a/378/regr/spec_files/server3.vol b/378/regr/spec_files/server3.vol
new file mode 100644
index 0000000..d3f27d2
--- /dev/null
+++ b/378/regr/spec_files/server3.vol
@@ -0,0 +1,23 @@
+volume posix
+ type storage/posix
+ option directory /share/tickets/309/regr/export/export3
+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 listen-port 9352
+ option auth.addr.brick.allow *
+ subvolumes brick
+end-volume \ No newline at end of file
diff --git a/378/regr/spec_files/server4.vol b/378/regr/spec_files/server4.vol
new file mode 100644
index 0000000..9f6c56b
--- /dev/null
+++ b/378/regr/spec_files/server4.vol
@@ -0,0 +1,23 @@
+volume posix
+ type storage/posix
+ option directory /share/tickets/309/regr/export/export4
+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 listen-port 9353
+ option auth.addr.brick.allow *
+ subvolumes brick
+end-volume \ No newline at end of file
diff --git a/378/regr/testcase b/378/regr/testcase
new file mode 100755
index 0000000..6f80348
--- /dev/null
+++ b/378/regr/testcase
@@ -0,0 +1,40 @@
+#!/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="# (309) In replicate set-up when exnihilate.sh is run , client crashes"
+comments="In replicate set-up when exnihilate.sh is run , client crashes"
+
+source ../../init
+
+start_glusterfs
+
+touch $MOUNTDIR/client1/dot 2> ERROR_MSG
+
+cat ERROR_MSG
+
+if [ $( cat ERROR_MSG | grep 'transport endpoint not connected' | wc -l) -ne 0 ]
+then
+ not_ok $description
+ comment $comments
+else
+ ok $description
+fi
+
+rm -f ERROR_MSG
+cleanup_glusterfs \ No newline at end of file