Add further debug info to help debug 019_replslot_limit.pl failures.
Andres Freund <andres@anarazel.de>
Add further debug info to help debug 019_replslot_limit.pl failures. See also afdeff10526. Failures after that commit provided a few more hints, but not yet enough to understand what's going on. In 019_replslot_limit.pl shut down nodes with fast instead of immediate mode if we observe the failure mode. That should tell us whether the failures we're observing are just a timing issue under high load. PGCTLTIMEOUT should prevent buildfarm animals from hanging endlessly. Also adds a bit more logging to replication slot drop and ShutdownPostgres(). Discussion: https://postgr.es/m/20220225192941.hqnvefgdzaro6gzg@alap3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/replication/slot.c | modified | +13 −0 |
| src/backend/storage/lmgr/lwlock.c | modified | +7 −0 |
| src/backend/utils/init/postinit.c | modified | +17 −0 |
| src/include/storage/lwlock.h | modified | +1 −0 |
| src/test/recovery/t/019_replslot_limit.pl | modified | +17 −1 |
Discussion
- Race conditions in 019_replslot_limit.pl 42 messages · 2022-02-15 → 2022-05-31