forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6476752
committed
Fix race condition in recovery/t/009_twophase.pl test.
Since reducing pg_ctl's reaction time in commitc61559e, someslower buildfarm members have shown erratic failures in this test.The reason turns out to be that the test assumes synchronousreplication (because it does not provide any lag time for a committo replicate before shutting down the servers), but it had onlyenabled sync rep in one direction. The observed symptoms correspondto failure to replicate the last committed transaction in the otherdirection, which can be expected to happen if the shutdown commandis issued soon enough and we are providing no synchronous-commitguarantees.Fix that, and add a bit more paranoid state checking at the bottomof the script.Michael Paquier and myselfDiscussion:https://postgr.es/m/908.1498965681@sss.pgh.pa.us1 parentefdb4f2 commit6476752
1 file changed
+39
-14
lines changedLines changed: 39 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
12 | 26 |
| |
13 | 27 |
| |
14 | 28 |
| |
| |||
28 | 42 |
| |
29 | 43 |
| |
30 | 44 |
| |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 |
| - | |
38 |
| - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
39 | 48 |
| |
| 49 | + | |
40 | 50 |
| |
41 | 51 |
| |
42 | 52 |
| |
| |||
213 | 223 |
| |
214 | 224 |
| |
215 | 225 |
| |
216 |
| - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
217 | 230 |
| |
218 | 231 |
| |
219 | 232 |
| |
| |||
309 | 322 |
| |
310 | 323 |
| |
311 | 324 |
| |
312 |
| - | |
313 |
| - | |
| 325 | + | |
| 326 | + | |
314 | 327 |
| |
315 | 328 |
| |
316 | 329 |
| |
| |||
327 | 340 |
| |
328 | 341 |
| |
329 | 342 |
| |
330 |
| - | |
| 343 | + | |
331 | 344 |
| |
332 |
| - | |
| 345 | + | |
333 | 346 |
| |
334 | 347 |
| |
335 | 348 |
| |
336 | 349 |
| |
337 | 350 |
| |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
338 | 357 |
| |
339 | 358 |
| |
340 | 359 |
| |
| |||
370 | 389 |
| |
371 | 390 |
| |
372 | 391 |
| |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
373 | 398 |
| |
374 | 399 |
| |
375 | 400 |
| |
|
0 commit comments
Comments
(0)