Skip to content

Commit ab7699e

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 1e6bb61 commit ab7699e

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
@@ -130,6 +130,7 @@
130130
'xmin on physical slot must not be lower than catalog_xmin');
131131

132132
$node_master->safe_psql('postgres', 'CHECKPOINT');
133+
$node_master->wait_for_catchup($node_replica, 'write');
133134

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

0 commit comments

Comments
 (0)