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/[email protected]
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

+1
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)