pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix the race condition in the test case added by commit a6e04b1d
Date: Tue, 09 May 2023 09:00:23 +0000
Message-ID: <E1pwJCo-001EyH-W8@gemulon.postgresql.org> (raw)

Fix the race condition in the test case added by commit a6e04b1d20.

The commit a6e04b1d20 added a test to ensure that the invalidated logical
slots don't retain WAL. The test was ensuring that the checkpoint removes
the WAL files corresponding to invalidated logical slots on the standby
node but missed the point that the standby node also had a physical slot
which led to the prevention of WAL file removal. Move the creation of
physical slot on the standby and initialization of cascading standby closer
to the test case that actually required it so that other tests don't get
affected by the presence of the physical slot on standby.

Author: Bertrand Drouvot
Reviewed-by: Amit Kapila
Discussion: https://postgr.es/m/2fefa454-5a70-2174-ddbf-4a0e41537139@gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c5b7f67fcc8c4a01c82660eb0996a3c697fac283

Modified Files
--------------
.../recovery/t/035_standby_logical_decoding.pl     | 36 +++++++++++-----------
1 file changed, 18 insertions(+), 18 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1pwJCo-001EyH-W8@gemulon.postgresql.org>
Permalink:  ../E1pwJCo-001EyH-W8@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pwJCo-001EyH-W8@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: akapila@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Fix the race condition in the test case added by commit a6e04b1d
  In-Reply-To: <E1pwJCo-001EyH-W8@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