projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e56d717
)
Add a wait_for_catchup() before immediate stop of a test master.
author
Noah Misch
Tue, 14 Apr 2020 01:47:28 +0000
(18:47 -0700)
committer
Noah Misch
Tue, 14 Apr 2020 01:47:28 +0000
(18:47 -0700)
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
[email protected]
src/test/recovery/t/010_logical_decoding_timelines.pl
patch
|
blob
|
blame
|
history
diff --git
a/src/test/recovery/t/010_logical_decoding_timelines.pl
b/src/test/recovery/t/010_logical_decoding_timelines.pl
index e582b20005026caa89439f18497a291824aca80d..11f5595e2bf4faa34b11cad1f675a6f1f77f10e6 100644
(file)
--- 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');