Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9GPG-0003j0-D6 for pgsql-committers@arkaria.postgresql.org; Fri, 30 Jul 2021 00:29:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m9GPD-0000XQ-Mg for pgsql-committers@arkaria.postgresql.org; Fri, 30 Jul 2021 00:29:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9GPC-0000XI-C0 for pgsql-committers@lists.postgresql.org; Fri, 30 Jul 2021 00:29:39 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9GP7-0000iH-VQ for pgsql-committers@lists.postgresql.org; Fri, 30 Jul 2021 00:29:37 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 677095C00EF; Thu, 29 Jul 2021 20:29:30 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 29 Jul 2021 20:29:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=vUoWtJouV+SOzCwwttr/uTv0L9G EMNR6QJ2pha5Zu+Q=; b=JzUWwkbm21zhFj26mITkpLwbtQ43zZAvzW1Ue77SadO O+nmfFscBNY0Le+rdpmquCyX2MAn7SvvmKzfo81Im3dDchU7VslenNANtayhsccl M0ZnSPnL3ki6O1oWj+iH/Xjeevrqbd/62Wg0Ym/LQ+Gls+FcZ4o8Nj3GJxwbw04D PEjT7cBLWGPJ+GXsu5a95iK4SnJT7EFv+9ZU81JHMhyDHjzE1ikQR69PYg1fUrD3 sB+VEWT/AHW8JBaD0aVTU8z26DOBBP2GhJeRizc/jQgvPZb4h+8Unm+TDV+LInjF ui6P+9DWjCDaIDJ5zpBZbkJMNce5fSP5LCBRrg0Cwtg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=vUoWtJ ouV+SOzCwwttr/uTv0L9GEMNR6QJ2pha5Zu+Q=; b=k3qK9uhivnFndiZw5RSR6Q h1cQQIKncUW68lj47Im0oebqNp1ew1G0ZTaiKiNv9TX8ME94EL1/r9sp83NHckaR J4dEY04DrPQdeXop+ShjMxFVu+zV0dPUKmrRILGVrFmIqF/Q8I5ZZMQA68rA8i1B YwvOGx4RlLCN3FKcL82WKLC7HkzV0vVy4Pmk+2up5sItDRXFBGmqAbmU88lntcGv weeOoZE8Laj3zrS+nOgVk2EXIzJWk0CmSHmzcJMnZUeIdr4HCOzDukhmAbIsHu6A msFfAtyXTFmk8sXWbbVp/KYTVp4T2BTAMHSoRGAkasmuurIzQK76RAk42vhv1XvA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrheeggdduiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnheptdegvdeutdegtdeguedvgfffffeh keejleegtefgheffueeifeettdfgleegveetnecuffhomhgrihhnpehpghhsqhhlrdgsuh hilhgunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhep mhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 29 Jul 2021 20:29:28 -0400 (EDT) Date: Fri, 30 Jul 2021 09:29:24 +0900 From: Michael Paquier To: Andrew Dunstan Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Re-enable TAP tests of pg_receivewal for ZLIB on Windows Message-ID: References: <9040d5ed-6462-66a4-07ac-2923785ae563@dunslane.net> <7fffc966-0d54-61c9-63ac-b84fd1a1e86e@dunslane.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mBVoeg3galtG9h4L" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --mBVoeg3galtG9h4L Content-Type: multipart/mixed; boundary="KaDOg99ze60Ri27a" Content-Disposition: inline --KaDOg99ze60Ri27a Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 29, 2021 at 01:26:22PM -0400, Andrew Dunstan wrote: > It gets stuck in a loop like this: >=20 > ok 19 - one partial WAL segment was created > 0/2001968 > # Running: pg_receivewal -D H:/prog/bf/root/HEAD/pgsql.build/src/bin/pg_b= asebackup/tmp_check/t_020_pg_receivewal_primary_data/archive_wal --verbose = --endpos 0/3000028 --compress 1=20 > pg_receivewal: starting log streaming at 0/2000000 (timeline 1) > pg_receivewal: error: could not write 131072 bytes to WAL file "000000010= 000000000000002": Permission denied > pg_receivewal: error: could not close file "000000010000000000000002": Pe= rmission 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 --KaDOg99ze60Ri27a Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="receivewal-tap-loop.patch" Content-Transfer-Encoding: quoted-printable diff --git a/src/bin/pg_basebackup/t/020_pg_receivewal.pl b/src/bin/pg_base= backup/t/020_pg_receivewal.pl index 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"); =20 @@ -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"); =20 $partial_wals[0] =3D~ s/(\.gz)?.partial//; --KaDOg99ze60Ri27a-- --mBVoeg3galtG9h4L Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmEDR+QACgkQnvQgOdby QH3kjxAAjdD8U10vXaLo1y3NGsaLB1ziai0VPVjiE7NVuG4Jh+VTa2QfuKKTMN3p bAt8C4Uf5EQ09N5klDvqFgvPjC2QOvvQVvXjKrqv77jGiuVXQtiJlg1DGCkh9Rl3 T3TCB2wXCj806ssvUasZwY4lArwx1MCaH9j/bDaijxIugX1YyjKS7u5htPKu989d QUKWwYFxSj2WmKq9FXDLa9KUljHPvNp5uYw+FStoBbWxgDeytJD4kpX67dElTzla ZeMs0iTs330MlWcmpU2cv2W7NJEi3mtJpnDCj1aKRM4SIPPHePEGhl50ygZMj+J2 VUdQmboOZ+lQquhlaIQxq1IMgF34194lWPR82xeypjUuxK+E2x5OtQnRO32NDXQo Xqf0cEwoDO9ds8Nj6oVnK/up/DeQO4Gwwl9hTTZzUMAnMO41zG8FCKNUk7fYM5bN DUFGVnlK4t6PyN9AtRjklrscviVM+aAdQUvBskBDkmbgX1Jm1mG7iAkuYtBmjHH3 Ik5GvhGjSBmYxPGMBEH+n9Td8DNfjtDZM7lPqNWQNAaglFI56ZS1MWWavg/hIHGO yX7adExwLqjn5/Z+UclsicEtSz34kuqBCA0TJWsPmZqKnfqzY/o4TFSJR7o/Rxo7 3aNH12d4eYKocHsVXsD9jgt8MmvZfemrCkAXYv/DTfZ4/6a7WHI= =XEjm -----END PGP SIGNATURE----- --mBVoeg3galtG9h4L--