]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Make 009_twophase.pl test pass with recovery_min_apply_delay set
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 16 Dec 2024 13:56:38 +0000 (15:56 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 16 Dec 2024 13:59:34 +0000 (15:59 +0200)
commit2af2457fa6d849868a88128bfef9fab5c18c0b50
tree929b7537cdb3758e0468be1d12528116e07b154e
parentff88db91036fed10dedb9e38786506d0460bd7dd
Make 009_twophase.pl test pass with recovery_min_apply_delay set

The test failed if you ran the regression tests with TEMP_CONFIG with
recovery_min_apply_delay = '500ms'. Fix the race condition by waiting
for transaction to be applied in the replica, like in a few other
tests.

The failing test was introduced in commit cbfbda7841. Backpatch to all
supported versions like that commit (except v12, which is no longer
supported).

Reported-by: Alexander Lakhin
Discussion: https://www.postgresql.org/message-id/09e2a70a-a6c2-4b5c-aeae-040a7449c9f2@gmail.com
src/test/recovery/t/009_twophase.pl