summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/common-utils.c
diff options
context:
space:
mode:
authorShyamsundarR <srangana@redhat.com>2018-08-13 15:11:15 -0400
committerAmar Tumballi <amarts@redhat.com>2018-08-16 06:09:23 +0000
commit82e5acd6b30aabccb0a1e157dc633591c4919a3e (patch)
tree72280f77376725245d28256719330b973805f1f2 /libglusterfs/src/common-utils.c
parente765dfa0704bed07eaf003c007d9ab192cdd8aa4 (diff)
tests: Fix spurious failures in stats-dump.t test
The test fails to grep and find queue_size, in a brick stats dump, having succesfully found aggr.* values in the same. The troubleshot is that, the writer thread in io-stats, that dumps this in a particular interval, truncates the file just before the grep attempts to read the contents, and hence the failure. The fix is to stop the dumper thread, and then wait for a couple of seconds and then check the output, so that the thread writer does not interfere with the test. Fixes: bz#1615582 Change-Id: I29f95488a2ad693abe1dd525b1d87a9d1eee29a2 Signed-off-by: ShyamsundarR <srangana@redhat.com>
Diffstat (limited to 'libglusterfs/src/common-utils.c')
0 files changed, 0 insertions, 0 deletions