diff options
Diffstat (limited to 'tests/basic/stats-dump.t')
-rw-r--r-- | tests/basic/stats-dump.t | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/basic/stats-dump.t b/tests/basic/stats-dump.t index 3eed80e5579..054df2e636f 100644 --- a/tests/basic/stats-dump.t +++ b/tests/basic/stats-dump.t @@ -26,8 +26,16 @@ done for i in {1..10};do dd if=/dev/zero of=$N0/nfs_testfile$i bs=4k count=100 done + +# Wait for one dump interval to be done, some seconds past 1 that is the dump +# interval set sleep 2 +# Change the dump interval to 0, so that when reading the file contents we +# do not get them truncated by the next interval that is overwriting the latest +# stats data +TEST $CLI volume set $V0 diagnostics.stats-dump-interval 0 + # Verify we have non-zero write counts from the bricks, gNFSd # and the FUSE mount. TEST [ $(grep 'aggr.fop.write.count' ${GLUSTERD_WORKDIR}/stats/glusterfs_nfsd.dump|tail -1|cut -d: -f2) != "0," ] |