diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2016-07-22 10:25:49 +0530 |
---|---|---|
committer | Niels de Vos <ndevos@redhat.com> | 2016-07-27 07:29:05 -0700 |
commit | 9112c896e7ad3087654a1bc8bc0d78c5effa885d (patch) | |
tree | 0387ac3c45854c6e7ccd1064021fd517de547476 /tests | |
parent | 0d52723332d06ec886273c7a9f01e058712b008c (diff) |
tests: Fix timing issue in ec.t
Problem:
Because of timing issue sometimes the mount is unmounted
even before the version is updated, this is leading to
not triggering heals.
Fix:
One way to fix this would be to increate 'sleep 2' to 'sleep 10'
but that would slow things down. I changed the way ec learns
it needs xattr healing so that it triggers heals even when the
xattrs are not marked correctly.
>Change-Id: I1c82041166443ae7079dd99b89ea2ed170233ba3
>BUG: 1359001
>Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
>Reviewed-on: http://review.gluster.org/14980
>Smoke: Gluster Build System <jenkins@build.gluster.org>
>NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
>CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
>Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
BUG: 1360575
Change-Id: I3e7812e3b54caee651e20d4f5dd7dded2f2aa8d6
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/15024
Smoke: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/basic/ec/ec.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/basic/ec/ec.t b/tests/basic/ec/ec.t index 6722c433a15..fdbc43f0f38 100644 --- a/tests/basic/ec/ec.t +++ b/tests/basic/ec/ec.t @@ -103,7 +103,7 @@ function check_rmdir { } function check_setxattr { - stat $M0/setxattr + getfattr -d -m. -e hex $M0/setxattr for b in $*; do v=$(my_getfattr -n user.foo $b/setxattr) if [ "$v" != "ash_nazg_durbatuluk" ]; then @@ -116,7 +116,7 @@ function check_setxattr { } function check_removexattr { - stat $M0/removexattr + getfattr -d -m. -e hex $M0/removexattr for b in $*; do my_getfattr -n user.bar $b/removexattr 2> /dev/null if [ $? -eq 0 ]; then |