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:28 -0700 |
commit | d60cfb6bf2b4812e97271e7b5ba3ad4713406b9d (patch) | |
tree | 2c0b9fcf0cf75a2dcb29aafd25a9bcc60179ae05 /src | |
parent | e56d717d8a23c48e4ab27b6bd6815c50dc3a378a (diff) | |
download | postgresql-d60cfb6bf2b4812e97271e7b5ba3ad4713406b9d.tar.gz postgresql-d60cfb6bf2b4812e97271e7b5ba3ad4713406b9d.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 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'); |