004_timeline_switch TAP test may fail

From: Sergey Tatarintsev <s(dot)tatarintsev(at)postgrespro(dot)ru>
To: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: 004_timeline_switch TAP test may fail
Date: 2026-06-16 08:01:15
Message-ID: fea4190e-f8b5-4432-a52d-bcbee5f34366@postgrespro.ru
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi hackers!

I found that after commit 7185eddf0522b3146ed1ff6e063e8e129e77c706 we
got little omission
in TAP test 004_timeline_switch:
...
my $node_standby_1 = PostgreSQL::Test::Cluster->new('standby_1');
...
$node_primary->stop;

There is no guarantee that standby_1 and standby_2 was successfully
connected to primary and start
streaming before primary stopped.

 I think we must ensure that primary knows about standby_1 and standby_2

--
With best regards,
Sergey Tatarintsev,
PostgresPro

Attachment Content-Type Size
0001-Fix-004_timeline_switch-TAP-test-wait-for-standbys-s.patch text/x-patch 1015 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message jian he 2026-06-16 08:08:39 Re: Add SPLIT PARTITION/MERGE PARTITIONS commands
Previous Message Pavel Stehule 2026-06-16 07:52:59 Re: POC: PLpgSQL FOREACH IN JSON ARRAY