- Notifications
You must be signed in to change notification settings - Fork5
Commit54638f5
committed
Make new isolationtester test more stable
The original coding of the test was relying too much on the ordering inwhich backends are awakened once an advisory lock which they wait for isreleased. Change the code so that each backend uses its own advisorylock instead, so that the output becomes stable. Also add a few secondsof sleep between lock releases, so that the test isn't broken inoverloaded buildfarm animals, as suggested by Tom Lane.Per buildfarm members spoonbill and guaibasaurus.Discussion:https://www.postgresql.org/message-id/19294.1456551587%40sss.pgh.pa.us1 parentc110678 commit54638f5
File tree
2 files changed
+30
-12
lines changed- src/test/isolation
- expected
- specs
2 files changed
+30
-12
lines changedLines changed: 19 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
4 |
| - | |
5 |
| - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
6 | 8 |
| |
7 |
| - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 |
| |
9 |
| - | |
10 |
| - | |
| 13 | + | |
| 14 | + | |
11 | 15 |
| |
12 | 16 |
| |
13 | 17 |
| |
14 | 18 |
| |
15 | 19 |
| |
16 | 20 |
| |
17 |
| - | |
| 21 | + | |
18 | 22 |
| |
19 | 23 |
| |
20 | 24 |
| |
21 | 25 |
| |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
22 | 30 |
| |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
23 | 35 |
| |
24 | 36 |
|
Lines changed: 11 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 |
| |
14 | 18 |
| |
15 | 19 |
| |
16 |
| - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
17 | 23 |
| |
18 | 24 |
| |
19 | 25 |
| |
20 | 26 |
| |
21 | 27 |
| |
22 | 28 |
| |
23 |
| - | |
| 29 | + | |
24 | 30 |
| |
25 | 31 |
| |
26 |
| - | |
| 32 | + | |
27 | 33 |
| |
28 |
| - | |
| 34 | + |
0 commit comments
Comments
(0)