git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: d93627b) | patch
Add recovery TAP test for race condition with slot invalidations
Wed, 6 Mar 2024 05:38:25 +0000 (14:38 +0900)
Wed, 6 Mar 2024 05:39:40 +0000 (14:39 +0900)
commit 08a52ab151ca599406883768cdc08b7929e516de
Add recovery TAP test for race condition with slot invalidations

This commit adds a recovery test to provide coverage for the bug fixed
in 818fefd8fd, using an injection point to wait just after the process
of an active slot is killed. The trick is to give enough time for
effective_xmin and effective_catalog_xmin to advance so as the slot
invalidation robustness can be checked since the active process is
killed without holding its slot's mutex for a short time.

Author: Bertrand Drouvot
Discussion: https://postgr.es/m/ZdyZya4YrNapWKqz@ip-10-97-1-34.eu-west-3.compute.internal
src/backend/replication/slot.c diff | blob | blame | history
src/test/recovery/t/035_standby_logical_decoding.pl diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /