|
5 | 5 | use warnings;
|
6 | 6 | use PostgresNode;
|
7 | 7 | use TestLib;
|
8 |
| -use Test::More tests => 16; |
| 8 | +use Test::More tests => 13; |
9 | 9 | use Config;
|
10 | 10 |
|
11 | 11 | my $primary = get_new_node('master');
|
|
136 | 136 | $standby1->start;
|
137 | 137 | $standby1->safe_psql('postgres', q{CHECKPOINT});
|
138 | 138 |
|
139 |
| -# Recovery with archive_mode=on does not keep .ready signal files inherited |
140 |
| -# from backup. Note that this WAL segment existed in the backup. |
141 |
| -ok( !-f "$standby1_data/$segment_path_1_ready", |
142 |
| - ".ready file for WAL segment $segment_name_1 present in backup got removed with archive_mode=on on standby" |
143 |
| -); |
144 |
| - |
145 | 139 | # Recovery with archive_mode=on should not create .ready files.
|
146 | 140 | # Note that this segment did not exist in the backup.
|
147 | 141 | ok( !-f "$standby1_data/$segment_path_2_ready",
|
148 | 142 | ".ready file for WAL segment $segment_name_2 not created on standby when archive_mode=on on standby"
|
149 | 143 | );
|
150 | 144 |
|
151 |
| -# Recovery with archive_mode = on creates .done files. |
152 |
| -ok( -f "$standby1_data/$segment_path_2_done", |
153 |
| - ".done file for WAL segment $segment_name_2 created when archive_mode=on on standby" |
154 |
| -); |
155 |
| - |
156 | 145 | # Test recovery with archive_mode = always, which should always keep
|
157 | 146 | # .ready files if archiving is enabled, though here we want the archive
|
158 | 147 | # command to fail to persist the .ready files. Note that this node
|
|
170 | 159 | ".ready file for WAL segment $segment_name_1 existing in backup is kept with archive_mode=always on standby"
|
171 | 160 | );
|
172 | 161 |
|
173 |
| -ok( -f "$standby2_data/$segment_path_2_ready", |
174 |
| - ".ready file for WAL segment $segment_name_2 created with archive_mode=always on standby" |
175 |
| -); |
176 |
| - |
177 | 162 | # Reset statistics of the archiver for the next checks.
|
178 | 163 | $standby2->safe_psql('postgres', q{SELECT pg_stat_reset_shared('archiver')});
|
179 | 164 |
|
|
0 commit comments