pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
To: michael@paquier.xyz
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Fix handling of WAL segments ready to be archived during crash r
Date: Fri, 24 Apr 2020 17:30:21 +0900 (JST)
Message-ID: <20200424.173021.437425683089236305.horikyota.ntt@gmail.com> (raw)
In-Reply-To: <20200424011437.GA806193@paquier.xyz>
References: <E1jRlci-00025N-Ov@gemulon.postgresql.org>
	<20200424005929.GK33034@paquier.xyz>
	<20200424011437.GA806193@paquier.xyz>

At Fri, 24 Apr 2020 10:14:37 +0900, Michael Paquier <michael@paquier.xyz> wrote in 
> On Fri, Apr 24, 2020 at 09:59:29AM +0900, Michael Paquier wrote:
> > And this visibly comes down to the fact that we don't take care enough
> > of the timing between the restartpoints done, the startup process
> > doing its recycling work and the archiver.  The rest of the test
> > relies on the reports of pg_stat_archiver a points to wait at as
> > published by the archiver process.  So there are two things we could
> > do here:
> > 1) Just remove the unstable parts of the tests (the three ones above),
> > and keep coverage based on everything we have using pg_stat_archiver.
> > 2) Remove the test entirely, though I would rather have us keep some
> > coverage, particularly for primaries as this got broken.
> > 
> > I'd rather do 2), any thoughts?
> 
> Oops, sorry.  I sent this message too quickly.  I would rather
> actually do 1) and keep the major parts of the tests.  All the
> buildfarm failures are just around the three checks mentioned
> upthread.

Thanks for your trouble fixing the failures. 

I think we can reimplement them by waiting
pg_stat_archiver.last_failed_wal at least for archive_mode=always
case. I'm not sure about the case where archive_mode=on, though.

regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center





view thread (11+ messages)  latest in thread

Message-ID: <20200424.173021.437425683089236305.horikyota.ntt@gmail.com>
Permalink:  ../20200424.173021.437425683089236305.horikyota.ntt@gmail.com/
Also on:    postgresql.org/message-id/20200424.173021.437425683089236305.horikyota.ntt@gmail.com

 · 

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: horikyota.ntt@gmail.com, michael@paquier.xyz
  Subject: Re: pgsql: Fix handling of WAL segments ready to be archived during crash r
  In-Reply-To: <20200424.173021.437425683089236305.horikyota.ntt@gmail.com>
  References: <E1jRlci-00025N-Ov@gemulon.postgresql.org> <20200424005929.GK33034@paquier.xyz> <20200424011437.GA806193@paquier.xyz> <20200424.173021.437425683089236305.horikyota.ntt@gmail.com>

* 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