Content-Length: 256635 | pFad | http://github.com/postgrespro/postgres_cluster/commit/d60cfb6bf2b4812e97271e7b5ba3ad4713406b9d

00 Add a wait_for_catchup() before immediate stop of a test master. · postgrespro/postgres_cluster@d60cfb6 · GitHub
Skip to content

Commit d60cfb6

Browse files
committed
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
1 parent e56d717 commit d60cfb6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/recovery/t/010_logical_decoding_timelines.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@
131131
'xmin on physical slot must not be lower than catalog_xmin');
132132

133133
$node_master->safe_psql('postgres', 'CHECKPOINT');
134+
$node_master->wait_for_catchup($node_replica, 'write');
134135

135136
# Boom, crash
136137
$node_master->stop('immediate');

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/d60cfb6bf2b4812e97271e7b5ba3ad4713406b9d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy