forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf483b20
committed
worker_spi: Fix another stability issue with BGWORKER_BYPASS_ALLOWCONN
worker_spi_launch() may report that a worker stopped when it fails toconnect on a database that does not allow connections if the workerexits before the SQL function checks for the current status of theworker. The test is switched to use Cluster::psql instead ofsafe_psql() so as it does not fail hard when this query errors. Whileon it, this removes a query that looks at pg_stat_activity to simplifythe test, as a check on the contents of the server logs achieves thesame when the worker cannot connect to the database withoutdatallowconn.Per buildfarm members kestrel, mamba and serinus. Bonus thanks to TomLane for providing the logs of the failure from mamba that the buildfarmwas not able to show up. Note that I have reproduced the failure with ahardcoded stop point.Discussion:https://postgr.es/m/3365937.1696801735@sss.pgh.pa.us1 parent64aad69 commitf483b20
1 file changed
+13
-13
lines changedLines changed: 13 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
105 | 105 |
| |
106 | 106 |
| |
107 | 107 |
| |
108 |
| - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
109 | 112 |
| |
110 | 113 |
| |
111 |
| - | |
112 |
| - | |
113 |
| - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
114 | 118 |
| |
115 |
| - | |
116 |
| - | |
117 |
| - | |
118 |
| - | |
119 |
| - | |
| 119 | + | |
| 120 | + | |
120 | 121 |
| |
121 | 122 |
| |
122 | 123 |
| |
123 |
| - | |
| 124 | + | |
| 125 | + | |
124 | 126 |
| |
125 | 127 |
| |
126 | 128 |
| |
127 | 129 |
| |
128 | 130 |
| |
129 |
| - | |
| 131 | + | |
130 | 132 |
| |
131 | 133 |
| |
132 |
| - | |
133 |
| - | |
134 | 134 |
|
0 commit comments
Comments
(0)