summaryrefslogtreecommitdiffstats
path: root/tests/bugs
diff options
context:
space:
mode:
authorPoornima G <pgurusid@redhat.com>2016-03-31 06:29:29 -0400
committerJeff Darcy <jdarcy@redhat.com>2016-04-12 05:10:40 -0700
commit0facb11220aea20a6573b656785922219c9650cf (patch)
tree76d238a11decbd18de27fade4a9f6bb99c3720ec /tests/bugs
parent9395b30964ede412ff48e744360b02920daa3a17 (diff)
io-stats: Fix overwriting of client profile by the bricks
Issue: When the user executes the following command to generate the client perf profile, if the client is on the same node as bricks, the bricks overwrite the profile info written by clients. Also xattr "trusted.io-stats-dump" gets set on the mount point. setxattr -n trusted.io-stats-dump -v /tmp/iostat.log /mnt/fuse Fix: Unwind from setxattr, when xattr is 'io-stats-dump' Change-Id: Iba0e5df2f25f4ba3b1399ac176a3f8a916ff372e BUG: 1322825 Signed-off-by: Poornima G <pgurusid@redhat.com> Reviewed-on: http://review.gluster.org/13872 NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Ravishankar N <ravishankar@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'tests/bugs')
-rwxr-xr-xtests/bugs/core/io-stats-1322825.t16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/bugs/core/io-stats-1322825.t b/tests/bugs/core/io-stats-1322825.t
new file mode 100755
index 00000000000..924251a432c
--- /dev/null
+++ b/tests/bugs/core/io-stats-1322825.t
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+. $(dirname $0)/../../include.rc
+
+cleanup;
+
+TEST glusterd
+TEST pidof glusterd
+TEST $CLI volume create $V0 $H0:$B0/${V0} $H0:$B1/${V0}
+TEST $CLI volume start $V0
+TEST glusterfs --volfile-id=/$V0 --volfile-server=$H0 $M0 --attribute-timeout=0 --entry-timeout=0
+TEST "echo hello > $M0/file1"
+TEST setfattr -n trusted.io-stats-dump -v /tmp/io-stats.log $M0
+TEST ! getfattr -n trusted.io-stats-dump $B0/${V0}
+
+cleanup;