summaryrefslogtreecommitdiffstats
path: root/tests/bugs
diff options
context:
space:
mode:
authorRavishankar N <root@ravi3.(none)>2014-06-19 17:41:25 +0000
committerVijay Bellur <vbellur@redhat.com>2014-06-23 00:48:17 -0700
commit1e4a046828ea11cb4c7738a2a00fb715f84dc1ff (patch)
treeb60cb63e3893a402a9f2bb089573a405f3461556 /tests/bugs
parenta6620e3840bad41b84c590116183670cb1819667 (diff)
cluster/stripe: don't treat ESTALE as failure in lookup
Problem: In a stripe volume, symlinks are created only on the first brick via the default_symlink() call. During gfid lookup, server sends ESTALE from the other bricks, which is treated as error in stripe_lookup_cbk() Fix: Don't treat ESTALE as error in stripe_lookup_cbk() Change-Id: Ie4ac8f0dfd3e61260161620bdc53665882e7adbd BUG: 1111454 Signed-off-by: Ravishankar N <root@ravi3.(none)> Reviewed-on: http://review.gluster.org/8135 Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests/bugs')
-rw-r--r--tests/bugs/bug-1111454.t18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/bugs/bug-1111454.t b/tests/bugs/bug-1111454.t
new file mode 100644
index 00000000000..49f080d975d
--- /dev/null
+++ b/tests/bugs/bug-1111454.t
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+. $(dirname $0)/../include.rc
+. $(dirname $0)/../volume.rc
+
+#symlink resolution should succeed
+cleanup;
+
+TEST glusterd
+TEST pidof glusterd
+TEST $CLI volume create $V0 stripe 2 $H0:$B0/${V0}{0,1}
+TEST $CLI volume start $V0
+TEST glusterfs --volfile-id=/$V0 --volfile-server=$H0 $M0 --attribute-timeout=0 --entry-timeout=0
+TEST mkdir $M0/dir
+TEST touch $M0/dir/file
+TEST ln -s file $M0/dir/symlinkfile
+TEST ls -lR $M0
+cleanup