Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0806cd2

Browse files
committed
Fix race condition in t/028_pitr_timelines.pl.
Per buildfarm members sungazer and mylodon. Back-patch to v15, whichintroduced this test.Discussion:https://postgr.es/m/20220627070457.GA2176699@rfd.leadboat.com
1 parent37ef8e1 commit0806cd2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎src/test/recovery/t/028_pitr_timelines.pl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,13 @@
140140
# back to this timeline.
141141
$node_pitr->safe_psql('postgres',"INSERT INTO foo VALUES(3);");
142142

143+
# Wait for the archiver to be running. The startup process might have yet to
144+
# exit, in which case the postmaster has not started the archiver. If we
145+
# stop() without an archiver, the archive will be incomplete.
146+
$node_pitr->poll_query_until('postgres',
147+
"SELECT true FROM pg_stat_activity WHERE backend_type = 'archiver';")
148+
ordie"Timed out while waiting for archiver to start";
149+
143150
# Stop the node. This archives the last segment.
144151
$node_pitr->stop();
145152

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp