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

Commit3d9cae5

Browse files
committed
Remove some unstable parts from new TAP test for archive status check
The test is proving to have timing issues when looking at archive statusfiles on standbys after crash recovery, while other parts of the testrely on pg_stat_archiver as a wait point to make sure that a given stateof the archiving is reached. The coverage is not heavily impacted bythe removal those extra tests.Per reports from several buildfarm animals, like crake, piculet,culicidae and francolin.Discussion:https://postgr.es/m/20200424005929.GK33034@paquier.xyzBackpatch-through: 9.5
1 parent02657c4 commit3d9cae5

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

‎src/test/recovery/t/020_archive_status.pl

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use warnings;
66
use PostgresNode;
77
use TestLib;
8-
use Test::Moretests=>16;
8+
use Test::Moretests=>13;
99
use Config;
1010

1111
my$primary = get_new_node('master');
@@ -155,24 +155,12 @@
155155
# Second restartpoint.
156156
$standby1->safe_psql('postgres',q{CHECKPOINT});
157157

158-
# Recovery with archive_mode=on removed .ready signal files inherited
159-
# from backup after two checkpoints. Note that this WAL segment
160-
# existed in the backup.
161-
ok( !-f"$standby1_data/$segment_path_1_ready",
162-
".ready file for WAL segment$segment_name_1 present in backup removed with archive_mode=on on standby"
163-
);
164-
165158
# Recovery with archive_mode=on should not create .ready files.
166159
# Note that this segment did not exist in the backup.
167160
ok( !-f"$standby1_data/$segment_path_2_ready",
168161
".ready file for WAL segment$segment_name_2 not created on standby when archive_mode=on on standby"
169162
);
170163

171-
# Recovery with archive_mode = on creates .done files.
172-
ok(-f"$standby1_data/$segment_path_2_done",
173-
".done file for WAL segment$segment_name_2 created when archive_mode=on on standby"
174-
);
175-
176164
# Test recovery with archive_mode = always, which should always keep
177165
# .ready files if archiving is enabled, though here we want the archive
178166
# command to fail to persist the .ready files. Note that this node
@@ -190,10 +178,6 @@
190178
".ready file for WAL segment$segment_name_1 existing in backup is kept with archive_mode=always on standby"
191179
);
192180

193-
ok(-f"$standby2_data/$segment_path_2_ready",
194-
".ready file for WAL segment$segment_name_2 created with archive_mode=always on standby"
195-
);
196-
197181
# Reset statistics of the archiver for the next checks.
198182
$standby2->safe_psql('postgres',q{SELECT pg_stat_reset_shared('archiver')});
199183

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp