pgsql: Close yet another race condition in replication slot test code

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Close yet another race condition in replication slot test code
Date: 2021-07-29 21:26:55
Message-ID: E1m9DYN-00011v-3Q@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Close yet another race condition in replication slot test code

Buildfarm shows that this test has a further failure mode when a
checkpoint starts earlier than expected, so we detect a "checkpoint
completed" line that's not the one we want. Change the config to try
and prevent this.

Per buildfarm

Author: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
Discussion: https://postgr.es/m/20210729.162038.534808353849568395.horikyota.ntt@gmail.com

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/41d27ee7b870c1a1213704d3c020a01eb55799b0

Modified Files
--------------
src/test/recovery/t/019_replslot_limit.pl | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2021-07-30 00:29:24 Re: pgsql: Re-enable TAP tests of pg_receivewal for ZLIB on Windows
Previous Message Alvaro Herrera 2021-07-29 21:20:19 Re: pgsql: Close yet another race condition in replication slot test code