Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gDj6S-0001QR-CT for pgsql-hackers@arkaria.postgresql.org; Sat, 20 Oct 2018 04:43:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gDj6P-0000v0-Gw for pgsql-hackers@arkaria.postgresql.org; Sat, 20 Oct 2018 04:43:05 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gDj6N-0000un-Lm for pgsql-hackers@lists.postgresql.org; Sat, 20 Oct 2018 04:43:05 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gDj6J-0002pl-Qx for pgsql-hackers@postgresql.org; Sat, 20 Oct 2018 04:43:02 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id B2959CA9; Sat, 20 Oct 2018 00:42:57 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sat, 20 Oct 2018 00:42:58 -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=fm3; bh=AnyorF3LptrWmRWMnvoI7XfX9sJ Xnjec+XhR83uPvO8=; b=I16DKO4A+bxlFtIauCiKIkGWb5DopZ0KwgW7NPDw2KB agxGuUQlJPn4AMRkwlZ7nhC+VtGuf5VOsXKiegQC6C4eBuQ2mcOU0ftiZeHWooQE KsPMMmxjzlfXRUR7g02w1iuRA/2nqgzbrgpEc2SM2yr2JyLvTytKVCx7K82yub/G AELHdmZ2e5wJgpKUE43v1k8MR0KRZYDa84zZw5W2zjyrP8NMtYIKErfl3R7lqyDf Xswf/Fc6xFeNq5zSOmVKwjeUlV5i5EFHO0DyqFgT38S1+rjkF+bND/jeFyRJOtxX xf+GesboB+lXwUCwrKq48CG7Rla9vlN7gRUd90vAGZA== 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=fm1; bh=AnyorF 3LptrWmRWMnvoI7XfX9sJXnjec+XhR83uPvO8=; b=rdbPz+xoNpietlv30OROwA 5vymKdvFVW2ISeiblV//Sv6fR6cMN1Pv1zMIltmvyEQSxrvz1tQFpo9vxlr/m4rd MxfPT4uMsOjsO2U7rHrS6tUCSNkKGXJROVoVzxoj2q5Jo6Q19azxbopl7se6iI98 D8QihtXhOCUveebmRp8Pr3Zj/ZxtgmmNGacI+co6OSyJ/eQbe3bV2juSs3NI7gMO bk8BUjBYZle4ImhCRwNSVepFDABYDWlUSz9qr5tsHzOC33XF9dRWYI8ES5GHQ3QU 8ML6dL4x/6Ui5kLkEcAZyE8g3w2peE5Xh4XPdqHKQwF44Fbc63Is+T31CHNz64pg == X-ME-Sender: X-ME-Proxy: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id C9855E4119; Sat, 20 Oct 2018 00:42:51 -0400 (EDT) Date: Sat, 20 Oct 2018 13:42:48 +0900 From: Michael Paquier To: Stephen Frost Cc: Andres Freund , Andrew Dunstan , Daniel Gustafsson , Magnus Hagander , Michael Banck , Postgres hackers , Tom Lane Subject: Re: pgsql: Add TAP tests for pg_verify_checksums Message-ID: <20181020044248.GD2553@paquier.xyz> References: <20181019192146.j4my7yjzv4eitw2w@alap3.anarazel.de> <20181019195728.GQ4184@tamriel.snowman.net> <20181019200723.4byzaw5km5jvsxlc@alap3.anarazel.de> <20181019203546.GR4184@tamriel.snowman.net> <20181019205724.ewnuhvrsanacihzq@alap3.anarazel.de> <20181019213257.GS4184@tamriel.snowman.net> <16306.1539988998@sss.pgh.pa.us> <20181020033955.GA2553@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Ycz6tD7Th1CMF4v7" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Ycz6tD7Th1CMF4v7 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 20, 2018 at 12:25:19AM -0400, Stephen Frost wrote: > On Fri, Oct 19, 2018 at 23:40 Michael Paquier wrote: >> - I agree with not doing a simple revert to not turn the buildfarm red >> again. This is annoying for animal maintainers. Andrew has done a very >> nice work in disabling manually those tests temporarily. >=20 > This is a red herring, and always was, so I=E2=80=99m rather unimpressed = at how it > keeps coming up- no, I=E2=80=99m not advocating that we should just make = the build > farm red and just leave it that way. Yes, we should fix this case, and f= ix > pg_basebackup, and maybe even try to add some regression tests which test > this exact same case in pg_basebackup, but making the build farm green is > *not* the only thing we should care about. Well, the root of the problem was that pg_verify_checksums has been committed without any tests on its own. If we had those tests from the start, then we would not be having this discussion post-release time, still trying to figure out if whitelisting or blacklisting is appropriate. The validation checksums in base backups has been added in 4eb77d50, a couple of days before pg_verify_checksums has been introduced. This has added corruption-related tests in src/bin/pg_basebackup, which is a good thing. However the feature has been designed so as checksum mismatches are ignored after 5 failures, which actually *masked* the fact that EXEC_BACKEND files like CONFIG_EXEC_PARAMS should have been skipped instead of getting checksum failures. And that's a bad thing. So this gives in my opinion a good point about using a whitelist. -- Michael --Ycz6tD7Th1CMF4v7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlvKskgACgkQnvQgOdby QH2SyxAAjfmUMPj8IaJfcD3oaFX1hs6PWFnJbuPsOZLfunF8JZ1glQ41/NWweuE7 RbfrxHCPFKU9UzGoBBGwzQ8iyytEtGIH3QSSRjD1Wpxb51SzQ+kPqYUNP950cSsV 2qBN9v7OGyXCyCbQUimNTjYUqCx3A+kVsSZrs0QNcKCVkF2f0rpZB2cpP2ejYKPV V9jHgY/0gWrbNsckinprxpSKbW9a2UYueHUg3QMy8NYYL6gUWG1xCOHa5nnZiJjS a5rnsj2wV9YlwIiqwN32LoiD3nH5Pc/o7+D/KrAjmurCBYFOLS7TweUGVlXDD+dL Ol9firR1mF/aapMxiU7f4CXqk0SqcA8nfsG8zDi3CCtvUUPxeIJmKTK4wof0YTlt K9vpBXrmHa2texTwTY91SfDbnKbDlibsYbqDWl+do/Yq/35BuYYV6ugAVsoXiCv0 iWoYynNwmdfesIRPPYyGAZU0Iio0w9FoX0AG/XJmYObUlvPJ2I+tIf/YsttGAI5R TcPPEoxP/quaLlPD1aqcAduCbAA8nmgDrlMz680JIPUDkzXLmWoExVWLLFMr1VRV sFtkgibamCPjDo+NjnL1NmRsDvNl4HxTY6d+p66j+dUdbzp+i0wRCF73VfQ+UCjJ TMSeKQVBMh3wEQE6byr8hsj8BbP+b5NW60EubrNLlwGfAcCA8P4= =+lNi -----END PGP SIGNATURE----- --Ycz6tD7Th1CMF4v7--