]> git.kaiwu.me - haproxy.git/commit
MINOR: wdt: also consider that waiting in the thread dumper is normal
authorWilly Tarreau <w@1wt.eu>
Wed, 31 Jul 2019 17:20:39 +0000 (19:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 31 Jul 2019 17:35:31 +0000 (19:35 +0200)
commita37cb1880c81b1f038e575d88ba7210aea0b7b8f
treea082491481b74e0b604fbf78d3f67b9eb513801d
parentc07736209db764fb2aef6f18ed3687a504c35771
MINOR: wdt: also consider that waiting in the thread dumper is normal

It happens that upon looping threads the watchdog fires, starts a dump,
and other threads expire their budget while waiting for the other threads
to get dumped and trigger a watchdog event again, adding some confusion
to the traces. With this patch the situation becomes clearer as we export
the list of threads being dumped so that the watchdog can check it before
deciding to trigger. This way such threads in queue for being dumped are
not attempted to be reported in turn.

This should be backported to 2.0 as it helps understand stack traces.
include/common/debug.h
src/debug.c
src/wdt.c