pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make new replication slot test code less racy
Date: Sat, 17 Jul 2021 17:35:39 +0000
Message-ID: <E1m4oDz-00009Z-Or@gemulon.postgresql.org> (raw)

Make new replication slot test code less racy

The new test code added in ead9e51e8236 is racy -- it hinges on
shared-memory state, which changes before the WARNING message is logged.
Put it the other way around.

Backpatch to 13.

Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://postgr.es/m/202107161809.zclasccpfcg3@alvherre.pgsql

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8589299e03fff012e0bbb9716693750a0d68eef7

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



view thread (6+ messages)  latest in thread

Message-ID: <E1m4oDz-00009Z-Or@gemulon.postgresql.org>
Permalink:  ../E1m4oDz-00009Z-Or@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1m4oDz-00009Z-Or@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Make new replication slot test code less racy
  In-Reply-To: <E1m4oDz-00009Z-Or@gemulon.postgresql.org>
  References: <E1m4oDz-00009Z-Or@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