forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite37ad5f
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 parent75edb91 commite37ad5f
1 file changed
+30
-4
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
125 | 125 |
| |
126 | 126 |
| |
127 | 127 |
| |
128 |
| - | |
| 128 | + | |
129 | 129 |
| |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
130 | 143 |
| |
131 | 144 |
| |
132 |
| - | |
| 145 | + | |
133 | 146 |
| |
134 | 147 |
| |
135 | 148 |
| |
| |||
214 | 227 |
| |
215 | 228 |
| |
216 | 229 |
| |
217 |
| - | |
| 230 | + | |
218 | 231 |
| |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
219 | 245 |
| |
220 | 246 |
| |
221 |
| - | |
| 247 | + | |
222 | 248 |
| |
223 | 249 |
| |
224 | 250 |
| |
|
0 commit comments
Comments
(0)