pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Unbreak recovery test on Windows
6+ messages / 2 participants
[nested] [flat]
Commits from this thread:
2021-03-21 ef82387384 Don't run recover crash_temp_files test in Windows perl
* pgsql: Unbreak recovery test on Windows
@ 2021-03-21 15:56 Andrew Dunstan <andrew@dunslane.net>
2021-03-21 16:38 ` Re: pgsql: Unbreak recovery test on Windows Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 6+ messages in thread
From: Andrew Dunstan @ 2021-03-21 15:56 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Unbreak recovery test on Windows
On Windows we need to send explicit quit messages to psql or the TAP tests
can hang.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/677271a3a125e294b33b891669f594a2c8cb36ce
Modified Files
--------------
src/test/recovery/t/022_crash_temp_files.pl | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pgsql: Unbreak recovery test on Windows
2021-03-21 15:56 pgsql: Unbreak recovery test on Windows Andrew Dunstan <andrew@dunslane.net>
@ 2021-03-21 16:38 ` Tom Lane <tgl@sss.pgh.pa.us>
2021-03-21 17:06 ` Re: pgsql: Unbreak recovery test on Windows Andrew Dunstan <andrew@dunslane.net>
0 siblings, 1 reply; 6+ messages in thread
From: Tom Lane @ 2021-03-21 16:38 UTC (permalink / raw)
To: Andrew Dunstan <andrew@dunslane.net>; +Cc: pgsql-committers@lists.postgresql.org
Andrew Dunstan <andrew@dunslane.net> writes:
> Unbreak recovery test on Windows
Hmm, looks like this broke things on other machines.
crake and sifaka (so far) are showing
# Running: pg_ctl kill KILL 2237831
ok 3 - killed process with KILL
ack Broken pipe: write( 13, '\\q
' ) at /usr/share/perl5/vendor_perl/IPC/Run/IO.pm line 549.
which looks like a race condition: did we manage to stuff the "\q"
command down the pipe before killing the psql process, or not?
regards, tom lane
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pgsql: Unbreak recovery test on Windows
2021-03-21 15:56 pgsql: Unbreak recovery test on Windows Andrew Dunstan <andrew@dunslane.net>
2021-03-21 16:38 ` Re: pgsql: Unbreak recovery test on Windows Tom Lane <tgl@sss.pgh.pa.us>
@ 2021-03-21 17:06 ` Andrew Dunstan <andrew@dunslane.net>
2021-03-21 17:40 ` Re: pgsql: Unbreak recovery test on Windows Andrew Dunstan <andrew@dunslane.net>
2021-03-21 18:16 ` Re: pgsql: Unbreak recovery test on Windows Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 2 replies; 6+ messages in thread
From: Andrew Dunstan @ 2021-03-21 17:06 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; tomas.vondra@postgresql.org; +Cc: pgsql-committers@lists.postgresql.org
On 3/21/21 12:38 PM, Tom Lane wrote:
> Andrew Dunstan <andrew@dunslane.net> writes:
>> Unbreak recovery test on Windows
> Hmm, looks like this broke things on other machines.
> crake and sifaka (so far) are showing
>
> # Running: pg_ctl kill KILL 2237831
> ok 3 - killed process with KILL
> ack Broken pipe: write( 13, '\\q
> ' ) at /usr/share/perl5/vendor_perl/IPC/Run/IO.pm line 549.
>
> which looks like a race condition: did we manage to stuff the "\q"
> command down the pipe before killing the psql process, or not?
>
>
Ugh. Is there any reason we need to do those kills before we end the
psql processes? If not I'm tempted just to move them - after the psql's
are finished it should be safe. At any rate I'll go and test that.
cheers
andrew
--
Andrew Dunstan
EDB: https://www.enterprisedb.com
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pgsql: Unbreak recovery test on Windows
2021-03-21 15:56 pgsql: Unbreak recovery test on Windows Andrew Dunstan <andrew@dunslane.net>
2021-03-21 16:38 ` Re: pgsql: Unbreak recovery test on Windows Tom Lane <tgl@sss.pgh.pa.us>
2021-03-21 17:06 ` Re: pgsql: Unbreak recovery test on Windows Andrew Dunstan <andrew@dunslane.net>
@ 2021-03-21 17:40 ` Andrew Dunstan <andrew@dunslane.net>
1 sibling, 0 replies; 6+ messages in thread
From: Andrew Dunstan @ 2021-03-21 17:40 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; tomas.vondra@postgresql.org; +Cc: pgsql-committers@lists.postgresql.org
On 3/21/21 1:06 PM, Andrew Dunstan wrote:
> On 3/21/21 12:38 PM, Tom Lane wrote:
>> Andrew Dunstan <andrew@dunslane.net> writes:
>>> Unbreak recovery test on Windows
>> Hmm, looks like this broke things on other machines.
>> crake and sifaka (so far) are showing
>>
>> # Running: pg_ctl kill KILL 2237831
>> ok 3 - killed process with KILL
>> ack Broken pipe: write( 13, '\\q
>> ' ) at /usr/share/perl5/vendor_perl/IPC/Run/IO.pm line 549.
>>
>> which looks like a race condition: did we manage to stuff the "\q"
>> command down the pipe before killing the psql process, or not?
>>
>>
>
> Ugh. Is there any reason we need to do those kills before we end the
> psql processes? If not I'm tempted just to move them - after the psql's
> are finished it should be safe. At any rate I'll go and test that.
>
>
Well, no good deed goes unpunished. That makes things hang on my Linux
box. Maybe we should just send the \q on Windows.
cheers
andrew
--
Andrew Dunstan
EDB: https://www.enterprisedb.com
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pgsql: Unbreak recovery test on Windows
2021-03-21 15:56 pgsql: Unbreak recovery test on Windows Andrew Dunstan <andrew@dunslane.net>
2021-03-21 16:38 ` Re: pgsql: Unbreak recovery test on Windows Tom Lane <tgl@sss.pgh.pa.us>
2021-03-21 17:06 ` Re: pgsql: Unbreak recovery test on Windows Andrew Dunstan <andrew@dunslane.net>
@ 2021-03-21 18:16 ` Tom Lane <tgl@sss.pgh.pa.us>
2021-03-21 18:32 ` Re: pgsql: Unbreak recovery test on Windows Andrew Dunstan <andrew@dunslane.net>
1 sibling, 1 reply; 6+ messages in thread
From: Tom Lane @ 2021-03-21 18:16 UTC (permalink / raw)
To: Andrew Dunstan <andrew@dunslane.net>; +Cc: tomas.vondra@postgresql.org; pgsql-committers@lists.postgresql.org
Andrew Dunstan <andrew@dunslane.net> writes:
> Ugh. Is there any reason we need to do those kills before we end the
> psql processes? If not I'm tempted just to move them - after the psql's
> are finished it should be safe. At any rate I'll go and test that.
IIUC, that'd completely destroy the point of the test, which is to make
sure we clean up when a backend dies unexpectedly. If we allow the
psql's to exit then the backend might be able to complete normal cleanup
before we can SIGKILL it.
Probably the best thing for now is to revert your change and instead
just skip the whole test script on Windows.
regards, tom lane
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pgsql: Unbreak recovery test on Windows
2021-03-21 15:56 pgsql: Unbreak recovery test on Windows Andrew Dunstan <andrew@dunslane.net>
2021-03-21 16:38 ` Re: pgsql: Unbreak recovery test on Windows Tom Lane <tgl@sss.pgh.pa.us>
2021-03-21 17:06 ` Re: pgsql: Unbreak recovery test on Windows Andrew Dunstan <andrew@dunslane.net>
2021-03-21 18:16 ` Re: pgsql: Unbreak recovery test on Windows Tom Lane <tgl@sss.pgh.pa.us>
@ 2021-03-21 18:32 ` Andrew Dunstan <andrew@dunslane.net>
0 siblings, 0 replies; 6+ messages in thread
From: Andrew Dunstan @ 2021-03-21 18:32 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: tomas.vondra@postgresql.org; pgsql-committers@lists.postgresql.org
On 3/21/21 2:16 PM, Tom Lane wrote:
> Andrew Dunstan <andrew@dunslane.net> writes:
>> Ugh. Is there any reason we need to do those kills before we end the
>> psql processes? If not I'm tempted just to move them - after the psql's
>> are finished it should be safe. At any rate I'll go and test that.
> IIUC, that'd completely destroy the point of the test, which is to make
> sure we clean up when a backend dies unexpectedly. If we allow the
> psql's to exit then the backend might be able to complete normal cleanup
> before we can SIGKILL it.
>
> Probably the best thing for now is to revert your change and instead
> just skip the whole test script on Windows.
>
>
OK, will do that.
cheers
andrew
--
Andrew Dunstan
EDB: https://www.enterprisedb.com
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2021-03-21 18:32 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-03-21 15:56 pgsql: Unbreak recovery test on Windows Andrew Dunstan <andrew@dunslane.net>
2021-03-21 16:38 ` Tom Lane <tgl@sss.pgh.pa.us>
2021-03-21 17:06 ` Andrew Dunstan <andrew@dunslane.net>
2021-03-21 17:40 ` Andrew Dunstan <andrew@dunslane.net>
2021-03-21 18:16 ` Tom Lane <tgl@sss.pgh.pa.us>
2021-03-21 18:32 ` Andrew Dunstan <andrew@dunslane.net>
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