Skip to content

Commit 424d7a9

Browse files
committed
Stabilize timeline switch regression test.
Commit fef5b47 added the regression test to check whether a standby is able to follow a primary on a newer timeline when WAL archiving is enabled. But the buildfarm member florican reported that this test failed because the requested WAL segment was removed and replication failed. This is a timing issue. Since neither replication slot is used nor wal_keep_size is set in the test, checkpoint could remove the WAL segment that's still necessary for replication. This commit stabilizes the test by setting wal_keep_size. Back-patch to v13 where the regression test that this commit stabilizes was added. Author: Fujii Masao Discussion: https://postgr.es/m/X//PsenxcC50jDzX@paquier.xyz
1 parent 3f238b8 commit 424d7a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/recovery/t/004_timeline_switch.pl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@
7575
# Initialize primary node
7676
my $node_primary_2 = get_new_node('primary_2');
7777
$node_primary_2->init(allows_streaming => 1, has_archiving => 1);
78+
$node_primary_2->append_conf(
79+
'postgresql.conf', qq(
80+
wal_keep_size = 512MB
81+
));
7882
$node_primary_2->start;
7983

8084
# Take backup

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy