pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Add test for postmaster crash restarts.
Date: Tue, 19 Sep 2017 12:53:28 -0400
Message-ID: <18695.1505840008@sss.pgh.pa.us> (raw)
In-Reply-To: <20170919164718.66hcedq2rtlkntvf@alap3.anarazel.de>
References: <E1du6ZT-00043I-91@gemulon.postgresql.org>
	<5250.1505793335@sss.pgh.pa.us>
	<8818AEBD-57F7-420D-8348-CDB426020BFE@anarazel.de>
	<17084.1505837634@sss.pgh.pa.us>
	<20170919164718.66hcedq2rtlkntvf@alap3.anarazel.de>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Andres Freund <andres@anarazel.de> writes:
> On 2017-09-19 12:13:54 -0400, Tom Lane wrote:
>> IOW, the "$monitor" instance of psql did not complete making its
>> connection until after the crash/restart cycle had occurred.

> That'd be easy enough to fix...

> Just something like

> $monitor_stdin .= q[
> SELECT $$am-i-up$$;
> ];
> $monitor->pump until $monitor_stdout =~ /am-i-up/;
> $monitor_stdout = '';

Hm, do we care whether the sleep call has started?  Maybe not.

>> I'd like to ask you to revert this test, at least pending making
>> it a whole lot more bulletproof.

> Hm. Ok. That seems like an overreaction to me - the failure rate isn't
> actualy that high so far.

It's not that it's high, it's that having to ask buildfarm owners to
manually unwedge their critters is not very cool.  Maybe prairiedog
will be the only one that gets stuck, but I kinda doubt it.

> I'm happy to add both timeouts and "earlier
> startup" of the $monitor, but I'd prefer to do so in-tree - I'd run the
> test through 100+ iterations locally, without any of this showing up.

Well, please fix it ASAP, if you don't want to take it out pending
the fixes.

			regards, tom lane


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



view thread (15+ messages)  latest in thread

Message-ID: <18695.1505840008@sss.pgh.pa.us>
Permalink:  ../18695.1505840008@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18695.1505840008@sss.pgh.pa.us

 · 

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, andres@anarazel.de
  Subject: Re: pgsql: Add test for postmaster crash restarts.
  In-Reply-To: <18695.1505840008@sss.pgh.pa.us>

* 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