aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2020-04-13 18:47:28 -0700
committerNoah Misch <noah@leadboat.com>2020-04-13 18:47:32 -0700
commit30afff385dd292c0e057f837838f063ea16ebef8 (patch)
tree6fa2901aca05d3ada63f333d6ad48f89f9da55ce
parent8ffb86644530fb205cbecf85008d8e4a89d4a0a6 (diff)
downloadpostgresql-30afff385dd292c0e057f837838f063ea16ebef8.tar.gz
postgresql-30afff385dd292c0e057f837838f063ea16ebef8.zip
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
-rw-r--r--src/test/recovery/t/010_logical_decoding_timelines.pl1
1 files changed, 1 insertions, 0 deletions
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');