forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit04c8634
committed
pg_createsubscriber: Only --recovery-timeout controls the end of recovery process
It used to check if the target server is connected to the primaryserver (send required WAL) to rapidly react when the process won'tsucceed. This code is not enough to guarantee that the recoveryprocess will complete. There is a window between the walreceivershutdown and the pg_is_in_recovery() returns false that can reachNUM_CONN_ATTEMPTS attempts and fails.Instead, rely only on the --recovery-timeout option to give up theprocess after the specified number of seconds.This should help with buildfarm failures on slow machines.Author: Euler Taveira <euler.taveira@enterprisedb.com>Reviewed-by: Hayato Kuroda <kuroda.hayato@fujitsu.com>Discussion:https://www.postgresql.org/message-id/776c5cac-5ef5-4001-b1bc-5b698bc0c62a%40app.fastmail.com1 parent8f1888e commit04c8634
File tree
3 files changed
+5
-33
lines changed- doc/src/sgml/ref
- src/bin/pg_basebackup
- t
3 files changed
+5
-33
lines changedLines changed: 0 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
325 | 325 |
| |
326 | 326 |
| |
327 | 327 |
| |
328 |
| - | |
329 |
| - | |
330 |
| - | |
331 |
| - | |
332 |
| - | |
333 |
| - | |
334 |
| - | |
335 | 328 |
| |
336 | 329 |
| |
337 | 330 |
| |
|
Lines changed: 3 additions & 26 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1360 | 1360 |
| |
1361 | 1361 |
| |
1362 | 1362 |
| |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
1363 | 1366 |
| |
1364 | 1367 |
| |
1365 | 1368 |
| |
1366 | 1369 |
| |
1367 | 1370 |
| |
1368 | 1371 |
| |
1369 | 1372 |
| |
1370 |
| - | |
1371 |
| - | |
1372 |
| - | |
1373 | 1373 |
| |
1374 | 1374 |
| |
1375 | 1375 |
| |
1376 | 1376 |
| |
1377 | 1377 |
| |
1378 | 1378 |
| |
1379 | 1379 |
| |
1380 |
| - | |
1381 | 1380 |
| |
1382 | 1381 |
| |
1383 | 1382 |
| |
| |||
1391 | 1390 |
| |
1392 | 1391 |
| |
1393 | 1392 |
| |
1394 |
| - | |
1395 |
| - | |
1396 |
| - | |
1397 |
| - | |
1398 |
| - | |
1399 |
| - | |
1400 |
| - | |
1401 |
| - | |
1402 |
| - | |
1403 |
| - | |
1404 |
| - | |
1405 |
| - | |
1406 |
| - | |
1407 |
| - | |
1408 |
| - | |
1409 |
| - | |
1410 |
| - | |
1411 |
| - | |
1412 |
| - | |
1413 |
| - | |
1414 |
| - | |
1415 |
| - | |
1416 | 1393 |
| |
1417 | 1394 |
| |
1418 | 1395 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
264 | 264 |
| |
265 | 265 |
| |
266 | 266 |
| |
| 267 | + | |
267 | 268 |
| |
268 | 269 |
| |
269 | 270 |
| |
| |||
301 | 302 |
| |
302 | 303 |
| |
303 | 304 |
| |
| 305 | + | |
304 | 306 |
| |
305 | 307 |
| |
306 | 308 |
| |
|
0 commit comments
Comments
(0)