Commit 5df027f
authored
Fix cache test reenable loop in VC_EVENT_READ_READY handler (#12712)
Move process_event() call outside the while loop that consumes data blocks.
The original code was calling reenable() for every block of data, which is
incorrect. The correct pattern (as shown in CacheTestSM) is to consume all
available data, then call reenable() once to signal readiness for more.
This fixes the flaky test_cache_Populated_Cache test that was aborting due
to excessive reenables when reading from a populated cache with many blocks.1 parent bd851ac commit 5df027f
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| 322 | + | |
322 | 323 | | |
323 | 324 | | |
324 | 325 | | |
325 | 326 | | |
326 | 327 | | |
327 | | - | |
328 | 328 | | |
| 329 | + | |
329 | 330 | | |
330 | 331 | | |
331 | 332 | | |
332 | | - | |
| 333 | + | |
333 | 334 | | |
334 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
335 | 339 | | |
336 | 340 | | |
337 | 341 | | |
| |||
0 commit comments