pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Michael Banck <michael.banck@credativ.de>
Cc: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Postgres hackers <pgsql-hackers@postgresql.org>
Cc: Daniel Gustafsson <daniel@yesql.se>
Cc: Magnus Hagander <magnus@hagander.net>
Subject: Re: pgsql: Add TAP tests for pg_verify_checksums
Date: Tue, 20 Nov 2018 10:22:51 +0900
Message-ID: <20181120012251.GF4400@paquier.xyz> (raw)
In-Reply-To: <20181119181119.GC23740@nighthawk.caipicrew.dd-dns.de>
References: <20181012020758.GB30064@paquier.xyz>
	<20181012024118.q3jwio7gf52nsrmm@alap3.anarazel.de>
	<20181012031158.GD30064@paquier.xyz>
	<20181012060543.GE30064@paquier.xyz>
	<20181012101447.GA13287@nighthawk.caipicrew.dd-dns.de>
	<20181013083040.GF30064@paquier.xyz>
	<c6290e25-97c1-5d2c-dc97-846ddb261d4d@2ndQuadrant.com>
	<1bce17ea-08f7-c480-fe69-a5f6467b461f@2ndQuadrant.com>
	<20181014015902.GI30064@paquier.xyz>
	<20181119181119.GC23740@nighthawk.caipicrew.dd-dns.de>

On Mon, Nov 19, 2018 at 07:11:19PM +0100, Michael Banck wrote:
> First off, I think those fail_corrupt files should have different
> filenames than the empty ones above (I left `99999_vm.123' as an
> example of a duplicated file).

A comment about that is a good idea.  So added.

> So either we remove or truncate the files again after
> $node->command_checks_all(), or the tests use the relfilenode
> feature.
>
> However, in the latter case we would have to use a different main
> relfilenode ID for each subtest, as otherwise pg_verify_checksums would
> again fail on the first file it scans.

The take here is to make sure that the correct file name is showing up
in the produced error message, and removing the files makes future test
more robust, so I have committed a version which removes the files
instead.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (76+ messages)  latest in thread

Message-ID: <20181120012251.GF4400@paquier.xyz>
Permalink:  ../20181120012251.GF4400@paquier.xyz/
Also on:    postgresql.org/message-id/20181120012251.GF4400@paquier.xyz

 · 

reply

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, michael.banck@credativ.de, andrew.dunstan@2ndquadrant.com, andres@anarazel.de, pgsql-hackers@postgresql.org, daniel@yesql.se, magnus@hagander.net
  Subject: Re: pgsql: Add TAP tests for pg_verify_checksums
  In-Reply-To: <20181120012251.GF4400@paquier.xyz>
  References: <20181012020758.GB30064@paquier.xyz> <20181012024118.q3jwio7gf52nsrmm@alap3.anarazel.de> <20181012031158.GD30064@paquier.xyz> <20181012060543.GE30064@paquier.xyz> <20181012101447.GA13287@nighthawk.caipicrew.dd-dns.de> <20181013083040.GF30064@paquier.xyz> <c6290e25-97c1-5d2c-dc97-846ddb261d4d@2ndQuadrant.com> <1bce17ea-08f7-c480-fe69-a5f6467b461f@2ndQuadrant.com> <20181014015902.GI30064@paquier.xyz> <20181119181119.GC23740@nighthawk.caipicrew.dd-dns.de> <20181120012251.GF4400@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