pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make 009_twophase.pl test pass with recovery_min_apply_delay set
Date: Mon, 16 Dec 2024 14:00:35 +0000
Message-ID: <E1tNBeE-0030vg-RJ@gemulon.postgresql.org> (raw)

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

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3231cb57d886450f0251f64e440ac51d4675bef2

Modified Files
--------------
src/test/recovery/t/009_twophase.pl | 1 +
1 file changed, 1 insertion(+)



view thread (6+ messages)

Message-ID: <E1tNBeE-0030vg-RJ@gemulon.postgresql.org>
Permalink:  ../E1tNBeE-0030vg-RJ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tNBeE-0030vg-RJ@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Make 009_twophase.pl test pass with recovery_min_apply_delay set
  In-Reply-To: <E1tNBeE-0030vg-RJ@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox