From: Michael Paquier <michael@paquier.xyz>
To: Stephen Frost <sfrost@snowman.net>
Cc: Andres Freund <andres@anarazel.de>
Cc: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Cc: Daniel Gustafsson <daniel@yesql.se>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: Michael Banck <michael.banck@credativ.de>
Cc: Postgres hackers <pgsql-hackers@postgresql.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Subject: Re: pgsql: Add TAP tests for pg_verify_checksums
Date: Sat, 20 Oct 2018 13:42:48 +0900
Message-ID: <20181020044248.GD2553@paquier.xyz> (raw)
In-Reply-To: <CAOuzzgpAk3C6uAdyP6MQdamVRK5u05FkqRRmZOk0xqAs9DTqKA@mail.gmail.com>
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>
<d38afe14-dc13-1e94-7adf-449c330a6fcb@2ndQuadrant.com>
<16306.1539988998@sss.pgh.pa.us>
<20181020033955.GA2553@paquier.xyz>
<CAOuzzgpAk3C6uAdyP6MQdamVRK5u05FkqRRmZOk0xqAs9DTqKA@mail.gmail.com>
On Sat, Oct 20, 2018 at 12:25:19AM -0400, Stephen Frost wrote:
> On Fri, Oct 19, 2018 at 23:40 Michael Paquier <michael@paquier.xyz> 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.
>
> This is a red herring, and always was, so I’m rather unimpressed at how it
> keeps coming up- no, I’m not advocating that we should just make the build
> farm red and just leave it that way. Yes, we should fix this case, and fix
> 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
Attachments:
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, sfrost@snowman.net, andres@anarazel.de, andrew.dunstan@2ndquadrant.com, daniel@yesql.se, magnus@hagander.net, michael.banck@credativ.de, pgsql-hackers@postgresql.org, tgl@sss.pgh.pa.us
Subject: Re: pgsql: Add TAP tests for pg_verify_checksums
In-Reply-To: <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> <d38afe14-dc13-1e94-7adf-449c330a6fcb@2ndQuadrant.com> <16306.1539988998@sss.pgh.pa.us> <20181020033955.GA2553@paquier.xyz> <CAOuzzgpAk3C6uAdyP6MQdamVRK5u05FkqRRmZOk0xqAs9DTqKA@mail.gmail.com> <20181020044248.GD2553@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