forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9a72299
committed
Remove race condition in 022_crash_temp_files.pl test.
It's possible for the query that "waits for restart" to complete asuccessful iteration before the postmaster has noticed its SIGKILL'dchild and begun the restart cycle. (This is a bit hard to believeperhaps, but it's been seen at least twice in the buildfarm, mainlyon ancient platforms that likely have quirky schedulers.)To provide a more secure interlock, wait for the other sessionwe're using to report that it's been forcibly shut down.Patch by me, based on a suggestion from Andres Freund.Back-patch to v14 where this test case came in.Discussion:https://postgr.es/m/1801850.1649047827@sss.pgh.pa.us1 parent8803df4 commit9a72299
1 file changed
+29
-5
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
| 19 | + | |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| |||
130 | 130 |
| |
131 | 131 |
| |
132 | 132 |
| |
133 |
| - | |
| 133 | + | |
134 | 134 |
| |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
135 | 147 |
| |
136 | 148 |
| |
137 |
| - | |
| 149 | + | |
138 | 150 |
| |
139 | 151 |
| |
140 | 152 |
| |
| |||
219 | 231 |
| |
220 | 232 |
| |
221 | 233 |
| |
222 |
| - | |
| 234 | + | |
223 | 235 |
| |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
224 | 248 |
| |
225 | 249 |
| |
226 |
| - | |
| 250 | + | |
227 | 251 |
| |
228 | 252 |
| |
229 | 253 |
| |
|
0 commit comments
Comments
(0)