004_timeline_switch TAP test may fail

Sergey Tatarintsev <s.tatarintsev@postgrespro.ru>

From: Sergey Tatarintsev <s.tatarintsev@postgrespro.ru>
To: pgsql-hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-06-16T08:01:15Z
Lists: pgsql-hackers

Attachments

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

Commits

  1. Fix another instability in recovery TAP test 004_timeline_switch

  2. Fix rare instability in recovery TAP test 004_timeline_switch