forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite589c48
committed
Fix race condition in remove_temp_files_after_crash TAP test
The TAP test was written so that it was not waiting for the correct SQLcommand, but for output from the preceding one. This resulted in raceconditions, allowing the commands to run in a different order, not blockas expected and so on. This fixes it by inverting the order of commandswhere possible, so that observing the output guarantees the data wasinserted properly, and waiting for a lock to appear in pg_locks.Discussion:https://postgr.es/m/CAH503wDKdYzyq7U-QJqGn%3DGm6XmoK%2B6_6xTJ-Yn5WSvoHLY1Ww%40mail.gmail.com1 parent27ab198 commite589c48
1 file changed
+42
-2
lines changedLines changed: 42 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
82 |
| - | |
83 | 82 |
| |
| 83 | + | |
84 | 84 |
| |
85 | 85 |
| |
86 | 86 |
| |
| |||
100 | 100 |
| |
101 | 101 |
| |
102 | 102 |
| |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
103 | 123 |
| |
104 | 124 |
| |
105 | 125 |
| |
| |||
147 | 167 |
| |
148 | 168 |
| |
149 | 169 |
| |
150 |
| - | |
151 | 170 |
| |
| 171 | + | |
152 | 172 |
| |
153 | 173 |
| |
154 | 174 |
| |
| |||
168 | 188 |
| |
169 | 189 |
| |
170 | 190 |
| |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
171 | 211 |
| |
172 | 212 |
| |
173 | 213 |
| |
|
0 commit comments
Comments
(0)