diff options
author | Noah Misch <noah@leadboat.com> | 2020-04-13 18:47:28 -0700 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2020-04-13 18:47:32 -0700 |
commit | b33ac1a658843bd3abf7450a51cfbcaf7d199f29 (patch) | |
tree | b47b47550348e13a3db5ca1511762f52f2046638 /src | |
parent | f3d06e524073798631186f1195228669aab54410 (diff) | |
download | postgresql-b33ac1a658843bd3abf7450a51cfbcaf7d199f29.tar.gz postgresql-b33ac1a658843bd3abf7450a51cfbcaf7d199f29.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
Diffstat (limited to 'src')
-rw-r--r-- | src/test/recovery/t/010_logical_decoding_timelines.pl | 1 |
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 6738eadb4fe..35eb9acc0c1 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'); |