From: Michael Paquier <michael@paquier.xyz>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Re-enable TAP tests of pg_receivewal for ZLIB on Windows
Date: Fri, 30 Jul 2021 09:29:24 +0900
Message-ID: <YQNH5NbE4JwVHa2s@paquier.xyz> (raw)
In-Reply-To: <ec093ff1-a53c-0091-46a2-4537354b0dd4@dunslane.net>
References: <E1m5gLs-0005tH-Jk@gemulon.postgresql.org>
<9040d5ed-6462-66a4-07ac-2923785ae563@dunslane.net>
<YPdfuyUga6yMPOqX@paquier.xyz>
<f1e1d188-e540-1f3e-d942-3f365e951cec@dunslane.net>
<YPi1D67DdsYZyaIG@paquier.xyz>
<7fffc966-0d54-61c9-63ac-b84fd1a1e86e@dunslane.net>
<eafc8cc6-43c6-3a2b-d67b-7bd05ab68d0f@dunslane.net>
<ec093ff1-a53c-0091-46a2-4537354b0dd4@dunslane.net>
On Thu, Jul 29, 2021 at 01:26:22PM -0400, Andrew Dunstan wrote:
> It gets stuck in a loop like this:
>
> ok 19 - one partial WAL segment was created
> 0/2001968
> # Running: pg_receivewal -D H:/prog/bf/root/HEAD/pgsql.build/src/bin/pg_basebackup/tmp_check/t_020_pg_receivewal_primary_data/archive_wal --verbose --endpos 0/3000028 --compress 1
> pg_receivewal: starting log streaming at 0/2000000 (timeline 1)
> pg_receivewal: error: could not write 131072 bytes to WAL file "000000010000000000000002": Permission denied
> pg_receivewal: error: could not close file "000000010000000000000002": Permission denied
> pg_receivewal: disconnected; waiting 5 seconds to try again
Hmm. This error is strange. Still, it is an oversight of ffc9ddae to
not use --no-loop here for the two new commands of pg_receivewal
--endpos. Please see the attached.
--
Michael
Attachments:receivewal-tap-loop.patch (text/x-diff, 933B) downloaddiff --git a/src/bin/pg_basebackup/t/020_pg_receivewal.pl b/src/bin/pg_basebackup/t/020_pg_receivewal.plindex 65076d6632..463dddbca8 100644--- a/src/bin/pg_basebackup/t/020_pg_receivewal.pl+++ b/src/bin/pg_basebackup/t/020_pg_receivewal.pl@@ -93,7 +93,8 @@ SKIP:
$primary->command_ok(
[
'pg_receivewal', '-D', $stream_dir, '--verbose',
- '--endpos', $nextlsn, '--compress', '1 '+ '--endpos', $nextlsn, '--compress', '1 ',+ '--no-loop'
],
"streaming some WAL using ZLIB compression");
@@ -138,7 +139,10 @@ chomp($nextlsn);
$primary->psql('postgres',
'INSERT INTO test_table VALUES (generate_series(200,300));');
$primary->command_ok(
- [ 'pg_receivewal', '-D', $stream_dir, '--verbose', '--endpos', $nextlsn ],+ [+ 'pg_receivewal', '-D', $stream_dir, '--verbose',+ '--endpos', $nextlsn, '--no-loop'+ ],
"streaming some WAL");
$partial_wals[0] =~ s/(\.gz)?.partial//;
signature.asc (application/pgp-signature, 832B) download
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-committers@postgresql.org
Cc: michael@paquier.xyz, andrew@dunslane.net
Subject: Re: pgsql: Re-enable TAP tests of pg_receivewal for ZLIB on Windows
In-Reply-To: <YQNH5NbE4JwVHa2s@paquier.xyz>
References: <E1m5gLs-0005tH-Jk@gemulon.postgresql.org> <9040d5ed-6462-66a4-07ac-2923785ae563@dunslane.net> <YPdfuyUga6yMPOqX@paquier.xyz> <f1e1d188-e540-1f3e-d942-3f365e951cec@dunslane.net> <YPi1D67DdsYZyaIG@paquier.xyz> <7fffc966-0d54-61c9-63ac-b84fd1a1e86e@dunslane.net> <eafc8cc6-43c6-3a2b-d67b-7bd05ab68d0f@dunslane.net> <ec093ff1-a53c-0091-46a2-4537354b0dd4@dunslane.net> <YQNH5NbE4JwVHa2s@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