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 1m3zec-0006Ni-Qr for pgsql-hackers@arkaria.postgresql.org; Thu, 15 Jul 2021 11:35:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m3zeZ-0007lb-7w for pgsql-hackers@arkaria.postgresql.org; Thu, 15 Jul 2021 11:35:43 +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 1m3zeY-0007kY-HG for pgsql-hackers@lists.postgresql.org; Thu, 15 Jul 2021 11:35:43 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3zeR-0007Ho-M9 for pgsql-hackers@lists.postgresql.org; Thu, 15 Jul 2021 11:35:41 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id F21865C01A9; Thu, 15 Jul 2021 07:35:33 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 15 Jul 2021 07:35:33 -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=SPR+4s68o10u8/GqSX/RQM5hZYx q1QNpdI/wtNJyFAc=; b=umk2ze/Y6iNFUJKhw3vEBlMUQ3XxaXw3+A54/3LTDSS cqRhCkKz0G3DVYunO0cXr7+YYUrbv5h5YcidAxpbQ8GLv0TxfFt81sBZzRj50jRp 2EYsxwUmCCaFxTro6gOoG8SFqiA7fMCg3lkA6+cT++rXJsA/E3fJcKURPCKm+rBs HLACxJYNhkHYT0yumjiW+zY8SMJH6g9L5CSfY+T07w2cyHahmA5lrr3JjXxVEPBo 6bh245Q6aYLCfTdTVGIim3VyXSF74FRkv2ydbQQaxLO6Ztrk/qI/hFmtXMLCSVaK NlOJFoTUiwnZFTtbEqioHLMT7ezDhiXsppG8NcCPlxw== 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=SPR+4s 68o10u8/GqSX/RQM5hZYxq1QNpdI/wtNJyFAc=; b=ZKxRAsBpR86W93sX1745gd yGXWsyFre7McXn88bc3pIbn3QD78sv/u14af1l2kVlzRgMEaBLLIoFaEnjn1/t5e VnLuKArWhLT+/s+gVwP1nXAeYCWgh2HWgtBHHntFWS9aJ9+CVc+KeTvE00bB38mo +oObukVR4ewbiqftzKftxrW+hgmJoVuK7JoPj6ZIeeajCcr1uidzci8NG8KKy3dU Ugy8z5MhVdwC5HUvg8gfa7A3QzSNMHdXQUmoMYl6dJxvQ0AuUcVjXdCIM2grtcew XvV1ISR2NJ/keWtCLMoFFk3n/AiIcgC94jopPdJ3d1IQ28ptyuoRZPlBd7UmRPiQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddtgddvjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculddvfedmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepkeefueffkedtgfeuffeitdffffef teeivdfhvefhvdejteetteegvdejteeuieeunecuffhomhgrihhnpehpohhsthhgrhgvsh hqlhdrohhrghdpphhgshhqlhdrsghuihhlugenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 15 Jul 2021 07:35:31 -0400 (EDT) Date: Thu, 15 Jul 2021 20:35:27 +0900 From: Michael Paquier To: gkokolatos@pm.me Cc: PostgreSQL Hackers Subject: Re: Introduce pg_receivewal gzip compression tests Message-ID: References: <20S0VOZrXJglfVMkn44Lks8F3gh66sHlxdes-d8XzjfcFV6VDHv9rF3_-KE2mnKTGlwoedEBz1k2UKrd2_hFBEQo2585MkrrJ-wpKWgGcBU=@pm.me> <3NaNnzcFOo6mMA50bGVOS7RNlz1IqJ8nBxvMRQw9UZFUu9zSK2taKcmmrI2B0dehIXVskeCtbtA5yTnpkPGBTJvD-55DqTjRR-nji7tML68=@pm.me> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2khNICuVq0+Np+4u" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --2khNICuVq0+Np+4u Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jul 15, 2021 at 07:48:08AM +0000, gkokolatos@pm.me wrote: > Let us hope that it will prevent some bugs from happening. The buildfarm has two reports. 1) bowerbird on Windows/MSVC: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=bowerbird&dt=2021-07-15%2010%3A30%3A36 pg_receivewal: fatal: could not fsync existing write-ahead log file "000000010000000000000002.partial": Permission denied not ok 20 - streaming some WAL using ZLIB compression I don't think the existing code can be blamed for that as this means a failure with gzflush(). Likely a concurrency issue as that's an EACCES. If that's repeatable, that could point to an actual issue with pg_receivewal --compress. 2) curculio: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=curculio&dt=2021-07-15%2010%3A30%3A15 # Running: gzip --test /home/pgbf/buildroot/HEAD/pgsql.build/src/bin/pg_basebackup/tmp_check/t_020_pg_receivewal_primary_data/archive_wal/000000010000000000000002.gz /home/pgbf/buildroot/HEAD/pgsql.build/src/bin/pg_basebackup/tmp_check/t_020_pg_receivewal_primary_data/archive_wal/000000010000000000000003.gz.partial gzip: /home/pgbf/buildroot/HEAD/pgsql.build/src/bin/pg_basebackup/tmp_check/t_020_pg_receivewal_primary_data/archive_wal/000000010000000000000003.gz.partial: unknown suffix: ignored not ok 24 - gzip verified the integrity of compressed WAL segments Looking at the OpenBSD code (usr.bin/compress/main.c), long options are supported, where --version does exit(0) without printing anything, and --test is supported even if that's not on the man pages. set_outfile() is doing a discard of the file suffixes it does not recognize, and I think that their implementation bumps on .gz.partial and generates an exit code of 512 to map with WARNING. I still wish to keep this test, and I'd like to think that the contents of @zlib_wals are enough in terms of coverage. What do you think? -- Michael --2khNICuVq0+Np+4u Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmDwHX8ACgkQnvQgOdby QH1A4Q/+IJJjfBb563aZq8C1hJIvv58Eww2sR5jL/FBoJecsYQeyLua4QKuFTElj xPmKsWzkTMrBw7seGF/QiBkB6rZHKPUz6xyF5wptkpqEmh6SlRXmtEttrg+Ru04B 3FBpMPsNupgFQaxzrJPuvBGdtZsuF/eBcyqS3r9mz6xn9mSMQGmOSMfkW8xbRSgV JGH6/GUNiKwZkvsLuhx9iHhqOZ5J9F8brl/o7UOULMbIW/rfp8tunPXhsCBnoXKi pyXzrrRtZ20fI+PmJBbPe8tOqDaB8lU++SE19hDGkL7ptM6m4HBAbQdVrz5uScAv MNayCnI4xuVwNo4GwqK7uAVCinESkrYfNKx+FktZLfJHRdLTarZUK4gI+e1Hg6JD ZfVZsnQTHgq7MA3GR0zExjqt7ptwa616r0tGnaFl+RL8wOjGZzwcCY13AvM4q/aK sL7v5J3X0zxrNpEZ3sMTb2qYJe1l1s9aNSQHRjHistLGtS/gM24INlAYcjxd1QRZ tp9bjtebqL8ezxtIZqF77eL7IR4wrCe2aWL1uDVaBKfEiZHZa4xuTrISO0HPqN+i VIgywb34aQFQiyLM7jlsF1sBSpAM7sbXnAPPIMpE+uF06Yes/57Rnz002W4pQZCe HRNuPq32XKnSRsDT3BAkzMNi4DnqjR5VlcF/6W2q+4Z0LlecQDs= =yRVb -----END PGP SIGNATURE----- --2khNICuVq0+Np+4u--