forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd11eae0
committed
Fix bogus loop logic in 013_crash_restart test's pump_until subroutine.
The pump_nb() step might've already received the desired data, so we mustcheck for that at the top of the loop not the bottom. Otherwise, thecall to pump() will sit with nothing to do until the timeout elapses.pump_until then falls out with apparent success ... but the timeout hasbeen used up, causing the next call of pump_until to report a timeoutfailure. I believe this explains the intermittent timeout failureswe've seen in the buildfarm ever since this test went in. I was ableto reproduce the problem on gaur semi-repeatably, and this appears tofix it.In passing, remove a duplicate assignment, fix one stdin-assignment tolook like the rest, and document the test's dependency on test_decoding.1 parent4a2994f commitd11eae0
2 files changed
+4
-3
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
| 12 | + | |
| 13 | + | |
12 | 14 |
| |
13 | 15 |
| |
14 | 16 |
| |
|
Lines changed: 2 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
157 | 157 |
| |
158 | 158 |
| |
159 | 159 |
| |
160 |
| - | |
161 | 160 |
| |
162 | 161 |
| |
163 | 162 |
| |
| |||
176 | 175 |
| |
177 | 176 |
| |
178 | 177 |
| |
179 |
| - | |
| 178 | + | |
180 | 179 |
| |
181 | 180 |
| |
182 | 181 |
| |
| |||
252 | 251 |
| |
253 | 252 |
| |
254 | 253 |
| |
| 254 | + | |
255 | 255 |
| |
256 | 256 |
| |
257 | 257 |
| |
| |||
269 | 269 |
| |
270 | 270 |
| |
271 | 271 |
| |
272 |
| - | |
273 | 272 |
| |
274 | 273 |
| |
275 | 274 |
| |
|
0 commit comments
Comments
(0)