Skip to content

Commit d60cfb6

Browse files
committed
Add a wait_for_catchup() before immediate stop of a test master.
Per buildfarm member hoverfly, a slow walsender could make the test fail. Back-patch to v10, where the test was introduced. Discussion: https://postgr.es/m/20200414013849.GA886648@rfd.leadboat.com
1 parent e56d717 commit d60cfb6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/recovery/t/010_logical_decoding_timelines.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@
131131
'xmin on physical slot must not be lower than catalog_xmin');
132132

133133
$node_master->safe_psql('postgres', 'CHECKPOINT');
134+
$node_master->wait_for_catchup($node_replica, 'write');
134135

135136
# Boom, crash
136137
$node_master->stop('immediate');

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