Skip to content

Commit 39f9f04

Browse files
committed
Fix timing issue in pg_rewind test.
The test inserts a row in primary server, waits until the insertion has been replicated to a cascaded standby, and checks that it's visible there by querying the cascaded standby. In order for that to work reliably, the test needs to wait until the insertion WAL record has been fully replayed. This should fix the occasional buildfarm failures. Diagnosis by Tom Lane. Discussion: https://www.postgresql.org/message-id/606796.1605424022@sss.pgh.pa.us
1 parent b7edb5d commit 39f9f04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_rewind/t/007_standby_source.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
"INSERT INTO tbl1 values ('in A, after rewind')");
156156

157157
$lsn = $node_a->lsn('insert');
158-
$node_b->wait_for_catchup('node_c', 'write', $lsn);
158+
$node_b->wait_for_catchup('node_c', 'replay', $lsn);
159159

160160
check_query(
161161
'SELECT * FROM tbl1',

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy