pgsql: Accept that server might not be able to send error in crash reco

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Accept that server might not be able to send error in crash reco
Date: 2017-09-20 04:42:08
Message-ID: E1duWps-00030F-Su@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Accept that server might not be able to send error in crash recovery test.

As it turns out we can't rely that the script's monitoring session is
terminated with a proper error by the server, because the session
might be terminated while already trying to send data.

Also improve robustness and error reporting facilities of the test,
developed while debugging this issue.

Discussion: https://postgr.es/m/20170920020038.kllxgilo7xzwmtto@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5ada1fcd0c30be1b0b793a802cf6da386a6c1925

Modified Files
--------------
src/test/recovery/t/013_crash_restart.pl | 98 ++++++++++++++++++++++++--------
1 file changed, 74 insertions(+), 24 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2017-09-20 04:42:15 Re: [HACKERS] Re: pgsql: Make new crash restart test a bit more robust.
Previous Message Tom Lane 2017-09-20 03:33:24 pgsql: Allow no-op GiST support functions to be omitted.