pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix instability in contrib/bloom TAP tests.
Date: Tue, 28 Sep 2021 21:34:51 +0000
Message-ID: <E1mVKkV-0007YM-53@gemulon.postgresql.org> (raw)

Fix instability in contrib/bloom TAP tests.

It turns out that the instability complained of in commit d3c09b9b1
has an embarrassingly simple explanation.  The test script waits for
the standby to flush incoming WAL to disk, but it should wait for
the WAL to be replayed, since we are testing for the effects of that
to be visible.

While at it, use wait_for_catchup instead of reinventing that logic,
and adjust $Test::Builder::Level to improve future error reports.

Back-patch to v12 where the necessary infrastructure came in
(cf. aforesaid commit).  Also back-patch 7d1aa6bf1 so that the
test will actually get run.

Discussion: https://postgr.es/m/2854602.1632852664@sss.pgh.pa.us

Branch
------
REL_14_STABLE

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

Modified Files
--------------
contrib/bloom/Makefile     | 4 +---
contrib/bloom/t/001_wal.pl | 8 +++-----
2 files changed, 4 insertions(+), 8 deletions(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1mVKkV-0007YM-53@gemulon.postgresql.org>
Permalink:  ../E1mVKkV-0007YM-53@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1mVKkV-0007YM-53@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: tgl@sss.pgh.pa.us, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Fix instability in contrib/bloom TAP tests.
  In-Reply-To: <E1mVKkV-0007YM-53@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