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 | ab7699e86c161960c44b51d1a7e6d32784cf5299 (patch) | |
tree | 1fd1b6097ea8d95f94c986266d4ba49cdfb42cbe | |
parent | 1e6bb6125f33eeb2e6cc00e6af8777bdbe9a3786 (diff) |
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.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 1f3d4f72f74..7114aa7d967 100644 --- a/src/test/recovery/t/010_logical_decoding_timelines.pl +++ b/src/test/recovery/t/010_logical_decoding_timelines.pl @@ -130,6 +130,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'); |