postgres.git / summary / log / commit / refs
commit 30afff385dd292c0e057f837838f063ea16ebef8
Author: Noah Misch <noah@leadboat.com>
Date: Tue Apr 14 01:47:28 2020 +0000
First released in: 13.0, 10.13, 11.8, 12.3
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
src/test/recovery/t/010_logical_decoding_timelines.pl | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/test/recovery/t/010_logical_decoding_timelines.pl b/src/test/recovery/t/010_logical_decoding_timelines.pl
index e582b200050..11f5595e2bf 100644
--- a/src/test/recovery/t/010_logical_decoding_timelines.pl
+++ b/src/test/recovery/t/010_logical_decoding_timelines.pl
@@ -131,6 +131,7 @@ cmp_ok(
'xmin on physical slot must not be lower than catalog_xmin');
$node_master->safe_psql('postgres', 'CHECKPOINT');
+$node_master->wait_for_catchup($node_replica, 'write');
# Boom, crash
$node_master->stop('immediate');
[parent: 8ffb86644530]