forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit071b2f7
committed
Remove obsolete replication settings within TAP tests.
PostgresNode.pm set "max_wal_senders = 5" for replication testing,but this seems to be slightly too low for our current test suite.Slower buildfarm members frequently report "number of requested standbyconnections exceeds max_wal_senders" failures, due to old walsendersnot exiting instantaneously. Usually, the test does not fail overallbecause of automatic walreceiver restart, but sometimes the failurebecomes visible; and in any case such retries slow down the test.That value came in with commit89ac700, but was soon obsoleted byf6d6d29, which raised the built-in default from zero to 10; so thatPostgresNode.pm is actually setting it to less than the conservativebuilt-in default. That seems pretty pointless, so let's remove thespecial setting and let the default prevail, in hopes of makingthe TAP tests more robust.Likewise, the setting "max_replication_slots = 5" is obsolete andcan be removed.While here, reverse-engineer a comment about why we're choosingless-than-default values for some other settings.(Note: before v12, max_wal_senders counted against max_connectionsso that the latter setting also needs some fiddling with.)Back-patch to v10 where the subscription tests were added.It's likely that the older branches aren't pushing the boundariesof max_wal_senders, but I'm disinclined to spend time trying tofigure out exactly when it started to be a problem.Discussion:https://postgr.es/m/723911.1601417626@sss.pgh.pa.us1 parent3344175 commit071b2f7
1 file changed
+3
-4
lines changedLines changed: 3 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
443 | 443 |
| |
444 | 444 |
| |
445 | 445 |
| |
446 |
| - | |
447 |
| - | |
448 | 446 |
| |
449 | 447 |
| |
450 |
| - | |
451 | 448 |
| |
452 | 449 |
| |
453 |
| - | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
454 | 453 |
| |
455 | 454 |
| |
456 | 455 |
| |
|
0 commit comments
Comments
(0)