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 1m9Qum-0002RY-6I for pgsql-committers@arkaria.postgresql.org; Fri, 30 Jul 2021 11:42:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m9Qul-0005IH-4L for pgsql-committers@arkaria.postgresql.org; Fri, 30 Jul 2021 11:42:55 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9Quk-0005I1-V2 for pgsql-committers@lists.postgresql.org; Fri, 30 Jul 2021 11:42:54 +0000 Received: from relay8-d.mail.gandi.net ([217.70.183.201]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9Qui-0003KH-Jc for pgsql-committers@lists.postgresql.org; Fri, 30 Jul 2021 11:42:53 +0000 Received: (Authenticated sender: adsend@dunslane.net) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 48CC21BF208; Fri, 30 Jul 2021 11:42:47 +0000 (UTC) Subject: Re: pgsql: Re-enable TAP tests of pg_receivewal for ZLIB on Windows To: Michael Paquier Cc: pgsql-committers@lists.postgresql.org References: <9040d5ed-6462-66a4-07ac-2923785ae563@dunslane.net> <7fffc966-0d54-61c9-63ac-b84fd1a1e86e@dunslane.net> From: Andrew Dunstan Message-ID: <27c00b6b-f858-daeb-6561-bbbae76d463c@dunslane.net> Date: Fri, 30 Jul 2021 07:42:45 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 7/29/21 8:29 PM, Michael Paquier wrote: > 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. Well that unsticks the test, so now it fails in an ordinary way, so +1 for doing that. I must say that --no-loop seems a little ill-designed. Effectively we have to choose between zero loops and infinite loops.  But that seems to be a matter of ancient (or at least medieval) history. I will see if a more modern zlib helps matters. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com