summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorShreyas Siravara <sshreyas@fb.com>2017-09-02 21:26:33 -0700
committerShreyas Siravara <sshreyas@fb.com>2017-09-03 05:23:09 +0000
commit32d15f6911ac5aa8f0280cb3c23fc7d97e8b000f (patch)
tree5d63d76900042770dcb19f32adc7bd98b3055dad /tests
parenta87e690e2b883b06240e01828dd83c86cbcd950f (diff)
debug/io-stats: Fix multi-volume support for nfsd
Summary: - Adds iamshd (iamnfsd already there due to fop throttling) options to io-stats xlator. - Leverages these options to correctly write multi-volume NFSd stats - This is a port of D2714648 to 3.8 Test Plan: - Tested on local dev server, verified multiple files are generated for multiple vols Change-Id: Id2014a135fe52045da462eaaa91f336f45cdf167 Reviewed-on: https://review.gluster.org/18195 Reviewed-by: Shreyas Siravara <sshreyas@fb.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Smoke: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/basic/fop-sampling.t2
-rw-r--r--tests/basic/stats-dump.t6
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/basic/fop-sampling.t b/tests/basic/fop-sampling.t
index 713c7e27579..d22826c4224 100644
--- a/tests/basic/fop-sampling.t
+++ b/tests/basic/fop-sampling.t
@@ -6,7 +6,7 @@
. $(dirname $0)/../volume.rc
BRICK_SAMPLES="$(gluster --print-logdir)/samples/glusterfsd__d_backends_${V0}0.samp"
-NFS_SAMPLES="$(gluster --print-logdir)/samples/glusterfs_nfsd.samp"
+NFS_SAMPLES="$(gluster --print-logdir)/samples/glusterfs_nfsd_${V0}.samp"
function check_path {
op=$1
diff --git a/tests/basic/stats-dump.t b/tests/basic/stats-dump.t
index 2840498218b..ceed7571a62 100644
--- a/tests/basic/stats-dump.t
+++ b/tests/basic/stats-dump.t
@@ -32,13 +32,13 @@ sleep 2
# and the FUSE mount
BRICK_OUTPUT="$(grep 'aggr.fop.write.count": "0"' ${GLUSTERD_WORKDIR}/stats/glusterfsd__d_backends_patchy?.dump)"
BRICK_RET="$?"
-NFSD_OUTPUT="$(grep 'aggr.fop.write.count": "0"' ${GLUSTERD_WORKDIR}/stats/glusterfs_nfsd.dump)"
+NFSD_OUTPUT="$(grep 'aggr.fop.write.count": "0"' ${GLUSTERD_WORKDIR}/stats/glusterfs_nfsd_$V0.dump)"
NFSD_RET="$?"
-FUSE_OUTPUT="$(grep 'aggr.fop.write.count": "0"' ${GLUSTERD_WORKDIR}/stats/glusterfs_patchy.dump)"
+FUSE_OUTPUT="$(grep 'aggr.fop.write.count": "0"' ${GLUSTERD_WORKDIR}/stats/glusterfs_$V0.dump)"
FUSE_RET="$?"
# Test that io-stats is getting queue sizes from io-threads
-TEST grep 'queue_size' ${GLUSTERD_WORKDIR}/stats/glusterfs_nfsd.dump
+TEST grep 'queue_size' ${GLUSTERD_WORKDIR}/stats/glusterfs_nfsd_$V0.dump
TEST grep 'queue_size' ${GLUSTERD_WORKDIR}/stats/glusterfsd__d_backends_patchy?.dump
TEST [ 0 -ne "$BRICK_RET" ]