pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Noah Misch <noah@leadboat.com>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Fix race in test of pg_switch_wal().
Date: Wed, 7 Oct 2020 11:31:50 +0900
Message-ID: <20201007023150.GE2256@paquier.xyz> (raw)
In-Reply-To: <20201007020327.GC1422897@rfd.leadboat.com>
References: <E1kHhpy-0001EB-61@gemulon.postgresql.org>
	<20200914082707.GH2183@paquier.xyz>
	<20201007020327.GC1422897@rfd.leadboat.com>

On Tue, Oct 06, 2020 at 07:03:27PM -0700, Noah Misch wrote:
> There's a new 020_archive_status.pl failure:
> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=mandrill&dt=2020-10-05%2023%3A02%3A17
> 
> Would you like to diagnose/fix that one?

Wow, thanks.  This does not looks like an issue coming directly from
the test though:
2020-10-06 00:20:46.786 UTC [20906622:8] LOG:  restored log file "000000010000000000000003" from archive
2020-10-06 00:20:46.803 UTC [10748670:1] ERROR:  could not open file "pg_xlog/000000010000000000000003": No such file or directory
2020-10-06 00:20:46.880 UTC [21496712:4] psql ERROR:  checkpoint request failed
2020-10-06 00:20:46.880 UTC [21496712:5] psql HINT:  Consult recent messages in the server log for details.
[...]
error running SQL: 'psql:<stdin>:1: ERROR:  checkpoint request failed
HINT:  Consult recent messages in the server log for details.'

And it looks like a race condition between the checkpointer and the
startup process.  This failure involves the first checkpoint triggered
in $standby2 after it gets created, with this standby reaching a
consistent point before triggering a manual restartpoint.  That's a
bit strange though, the startup process considers that this segment is
restored, but the checkpointer complains that it does not actually
exist, so that's in contradiction with what the startup process tells
us.  :/
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (6+ messages)

Message-ID: <20201007023150.GE2256@paquier.xyz>
Permalink:  ../20201007023150.GE2256@paquier.xyz/
Also on:    postgresql.org/message-id/20201007023150.GE2256@paquier.xyz

 · 

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: michael@paquier.xyz, noah@leadboat.com
  Subject: Re: pgsql: Fix race in test of pg_switch_wal().
  In-Reply-To: <20201007023150.GE2256@paquier.xyz>
  References: <E1kHhpy-0001EB-61@gemulon.postgresql.org> <20200914082707.GH2183@paquier.xyz> <20201007020327.GC1422897@rfd.leadboat.com> <20201007023150.GE2256@paquier.xyz>

* 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