[Bugs] [Bug 1615582] test: ./tests/basic/ stats-dump.t fails spuriously not finding queue_size in stats output for some brick

bugzilla at redhat.com bugzilla at redhat.com
Thu Aug 16 06:09:48 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1615582

Worker Ant <bugzilla-bot at gluster.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|POST                        |MODIFIED



--- Comment #2 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/20726 committed in master by "Amar Tumballi"
<amarts at redhat.com> with a commit message- 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 at redhat.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=c6AF427B0j&a=cc_unsubscribe


More information about the Bugs mailing list