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/[email protected]
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

+1-1
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)