Re: pgsql: Improve runtime and output of tests for replication slots checkp

From: Alexander Korotkov <aekorotkov(at)gmail(dot)com>
To: Melanie Plageman <melanieplageman(at)gmail(dot)com>
Cc: Alexander Korotkov <akorotkov(at)postgresql(dot)org>, pgsql-committers <pgsql-committers(at)lists(dot)postgresql(dot)org>
Subject: Re: pgsql: Improve runtime and output of tests for replication slots checkp
Date: 2025-06-20 17:04:37
Message-ID: CAPpHfduq==JJP6f2eKLxvKXBqLJ25QYUJkACDGwPSA3diC_AEg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On Fri, Jun 20, 2025, 19:10 Melanie Plageman <melanieplageman(at)gmail(dot)com>
wrote:

>
> On Thu, Jun 19, 2025 at 7:31 PM Alexander Korotkov <
> akorotkov(at)postgresql(dot)org> wrote:
>
>> Improve runtime and output of tests for replication slots checkpointing.
>>
>> The TAP tests that verify logical and physical replication slot behavior
>> during checkpoints (046_checkpoint_logical_slot.pl and
>> 047_checkpoint_physical_slot.pl) inserted two batches of 2 million rows
>> each,
>> generating approximately 520 MB of WAL. On slow machines, or when
>> compiled
>> with '-DRELCACHE_FORCE_RELEASE -DCATCACHE_FORCE_RELEASE', this caused the
>> tests to run for 8-9 minutes and occasionally time out, as seen on the
>> buildfarm animal prion.
>
>
> Quite a few animals have started failing since this commit (for example
> [1]) . I haven't looked into why, but I suspect something is wrong.
>
> stderr:
> # Failed test 'Logical slot still valid'
> # at /home/bf/bf-build/flaviventris/HEAD/pgsql/src/test/recovery/t/046_checkpoint_logical_slot.pl line 134.
> # got: 'death by signal at /home/bf/bf-build/flaviventris/HEAD/pgsql/src/test/perl/PostgreSQL/Test/Cluster.pm line 181.
> # '
> # expected: ''
>
> I see this failing on my fork's CI, so it seems like it could have been
> caught earlier?
>

Melanie, thank you for pointing. I'll take a look at this later today.

------
Regards,
Alexander Korotkov

>

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2025-06-20 17:42:13 pgsql: Use SnapshotDirty when checking for conflicting index names.
Previous Message Tom Lane 2025-06-20 16:13:26 pgsql: pgxs.mk: remove unreachable rule for deleting regress.def.