]> git.ipfire.org Git - thirdparty/elfutils.git/commit
debuginfod test: fix groom/stale race condition
authorFrank Ch. Eigler <fche@redhat.com>
Wed, 16 Jun 2021 22:49:10 +0000 (18:49 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Thu, 17 Jun 2021 01:27:59 +0000 (21:27 -0400)
commite113a61bc0537e485fbe7769f1ef0ebf02ac5e00
treebb7228e8b4c2f442ca2fc8f402ddb2a9bfde6e89
parent3b8f0874295355da9aba504345be1663fe28abcb
debuginfod test: fix groom/stale race condition

Additional tracing, and use of "% make check VERBOSE=1" in a .spec
file allowed tracking down of this intermittent problem.  The race was
between a SIGUSR1 or two to a debuginfod server (triggering two
traverse/scan phases), followed shortly by a SIGUSR2 (triggering a
groom).  If those signals were received too close together, the groom
phase could be stopped early, and the rm'd files not noticed.

New testsuite code adds metric polls after SIGUSR1 & SIGUSR2 to ensure
the respective processing phases are complete.  It also turns on "set -x"
tracing, so as to avoid pulling out quite as much hair next time.
"make check VERBOSE=1" is also important for spec files.

Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
tests/ChangeLog
tests/run-debuginfod-find.sh