Commit f40a25d
committed
Fix idle timer not reset after successful GCS Read completion
The idle timer was started/reset before each Read call but never reset
after successful completion. This meant the effective inter-Read idle
budget was reduced by the read duration itself. If a single GCS Read
took 9s, only 1s remained for the consumer before the timer fired.
A slow consumer (UFFD back-pressure, decompressor buffering) could
easily exceed that shrunken window, causing spurious context
cancellation - exactly the scenario the per-Read idle timer was meant
to protect against.
Adding timer.Reset after successful reads gives the consumer the full
idle budget after each completed read operation.1 parent 1a7b59d commit f40a25d
1 file changed
Lines changed: 2 additions & 0 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| 306 | + | |
| 307 | + | |
306 | 308 | | |
307 | 309 | | |
308 | 310 | | |
| |||
0 commit comments