Re: t/010_pg_basebackup.pl checksum verify fails with RELSEG_SIZE 1 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: t/010_pg_basebackup.pl checksum verify fails with RELSEG_SIZE 1
Date
Msg-id 22822.1579999768@sss.pgh.pa.us
Whole thread Raw
In response to t/010_pg_basebackup.pl checksum verify fails with RELSEG_SIZE 1  (Thomas Munro <thomas.munro@gmail.com>)
List pgsql-hackers
Thomas Munro <thomas.munro@gmail.com> writes:
> Sometimes I set RELSEG_SIZE to 1, as a way to get the various in-tree
> tests to give the relation segment code a good workout.  That's
> outside the range that configure --with-segsize would allow and
> therefore not really a supported size (it's set in GB), but it's very
> useful for giving the relation segment code a good workout on small
> databases like the check-world ones.  At some point I think that
> worked, but now it says:

> t/010_pg_basebackup.pl ... 100/106
> #   Failed test 'pg_basebackup does not report more than 5 checksum
> mismatches stderr

So ... presumably, the problem is that this supposes that whatever
damage it did is spread across less than 5 relation segments, and
with a sufficiently small segment size, that assumption is wrong.

I'd say this is a a poorly designed test.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: t/010_pg_basebackup.pl checksum verify fails with RELSEG_SIZE 1
Next
From: Justin Pryzby
Date:
Subject: Re: vacuum verbose detail logs are unclear; log at *start* of eachstage