pgsql: Make new crash restart test a bit more robust.

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Make new crash restart test a bit more robust.
Date: 2017-09-19 17:40:20
Message-ID: E1duMVQ-0006xF-Q7@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Make new crash restart test a bit more robust.

Add timeouts in case psql doesn't deliver the expected output, and try
to cause the monitoring psql to be fully connected to a backend. This
isn't necessarily everything needed, but at least the timeouts should
reduce the pain for buildfarm owners.

Author: Andres Freund
Reported-By: Tom Lane, BF animals prairiedog and calliphoridae
Discussion: https://postgr.es/m/E1du6ZT-00043I-91@gemulon.postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1910353675bd149e1020b29c0fae02538fc358cd

Modified Files
--------------
src/test/recovery/t/013_crash_restart.pl | 34 ++++++++++++++++++++------------
1 file changed, 21 insertions(+), 13 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2017-09-19 17:42:32 Re: pgsql: Add test for postmaster crash restarts.
Previous Message Tom Lane 2017-09-19 17:15:28 Re: Re: [COMMITTERS] pgsql: Perform only one ReadControlFile() during startup.

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2017-09-19 17:42:32 Re: pgsql: Add test for postmaster crash restarts.
Previous Message Melvin Davidson 2017-09-19 17:39:25 Re: [GENERAL] USER Profiles for PostgreSQL