pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Thomas Crayford <tcrayford@salesforce.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: "could not open file "pg_wal/…": No such file or directory" potential crashing bug due to race condition between restartpoint and recovery
Date: Tue, 2 Oct 2018 10:06:49 +0900
Message-ID: <20181002010649.GS11712@paquier.xyz> (raw)
In-Reply-To: <CAJgZ2Z4-dPQd1V7PS04JESELCEWtykCBtvcJ6Ezpd+7xW2qqiA@mail.gmail.com>
References: <CAJgZ2Z7SB1ZFpPPUh6Lczw+HdLc9t2rwmxp7OOEa7+-hJqZtEw@mail.gmail.com>
	<20180924153705.GB1103@paquier.xyz>
	<CAJgZ2Z4w=75AX6--Uumq2VMzmCJm_xTKZWf9ei58f08NEkjnyw@mail.gmail.com>
	<20180928225917.GB1823@paquier.xyz>
	<CAJgZ2Z4-dPQd1V7PS04JESELCEWtykCBtvcJ6Ezpd+7xW2qqiA@mail.gmail.com>

On Mon, Oct 01, 2018 at 12:43:02PM +0100, Thomas Crayford wrote:
> Sorry for the slow response on this - I was oncall last week and it was
> quite distracting and busy.
> 
> With respect to the restore_command, we use wal-e:
> https://github.com/wal-e/wal-e, specifically:
> 
> envdir DIRECTORY wal-e wal-fetch "%f" "%p"

Okay, so that should be fine.  When it comes to such race conditions,
putting directly into the suspicious code paths calls to pg_usleep would
most likely help in enforcing the bug to show up.
--
Michael

Attachments:

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

view thread (6+ messages)

Message-ID: <20181002010649.GS11712@paquier.xyz>
Permalink:  ../20181002010649.GS11712@paquier.xyz/
Also on:    postgresql.org/message-id/20181002010649.GS11712@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-bugs@postgresql.org
  Cc: michael@paquier.xyz, tcrayford@salesforce.com
  Subject: Re: "could not open file "pg_wal/…": No such file or directory" potential crashing bug due to race condition between restartpoint and recovery
  In-Reply-To: <20181002010649.GS11712@paquier.xyz>
  References: <CAJgZ2Z7SB1ZFpPPUh6Lczw+HdLc9t2rwmxp7OOEa7+-hJqZtEw@mail.gmail.com> <20180924153705.GB1103@paquier.xyz> <CAJgZ2Z4w=75AX6--Uumq2VMzmCJm_xTKZWf9ei58f08NEkjnyw@mail.gmail.com> <20180928225917.GB1823@paquier.xyz> <CAJgZ2Z4-dPQd1V7PS04JESELCEWtykCBtvcJ6Ezpd+7xW2qqiA@mail.gmail.com> <20181002010649.GS11712@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