pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@postgresql.org
Subject: pgsql: In tests, await an LSN no later than the recovery target.
Date: Mon, 01 Jan 2018 06:06:10 +0000
Message-ID: <E1eVtEg-0000jo-16@gemulon.postgresql.org> (raw)

In tests, await an LSN no later than the recovery target.

Otherwise, the test fails with "Timed out while waiting for standby to
catch up".  This happened rarely, perhaps only when autovacuum wrote WAL
between our choosing the recovery target and choosing the LSN to await.
Commit b26f7fa6ae2b4e5d64525b3d5bc66a0ddccd9e24 fixed one case of this.
Fix two more.  Back-patch to 9.6, which introduced the affected test.

Discussion: https://postgr.es/m/20180101055227.GA2952815@rfd.leadboat.com

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/5f5d73dd1a813fbd84b5dbeedb665403bc26d98a

Modified Files
--------------
src/test/recovery/t/003_recovery_targets.pl | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1eVtEg-0000jo-16@gemulon.postgresql.org>
Permalink:  ../E1eVtEg-0000jo-16@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eVtEg-0000jo-16@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: noah@leadboat.com
  Subject: Re: pgsql: In tests, await an LSN no later than the recovery target.
  In-Reply-To: <E1eVtEg-0000jo-16@gemulon.postgresql.org>
  References: <E1eVtEg-0000jo-16@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