fix(fs): handle reads for file with zero size / limit#10900
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #10900 +/- ##
=========================================
- Coverage 83.0% 83.0% -0.1%
=========================================
Files 837 837
Lines 316505 316542 +37
=========================================
+ Hits 262813 262823 +10
- Misses 53692 53719 +27 🚀 New features to boost your workflow:
|
0801d67 to
93d9121
Compare
|
Thanks! r+ sme approval |
|
Per Discord discussion, sounds like we need/want a v4.0 backport as well. It sounded like |
|
Confirmed this fixes the |
|
Backports to the beta branch are to be avoided unless absolutely necessary for fixing bugs, security issues, and perf regressions. Changes intended for backport should be structured such that a minimum effective diff can be committed separately from any refactoring, plumbing, cleanup, etc that are not strictly necessary to achieve the goal. Any of the latter should go only into master and ride the normal stabilization schedule. Exceptions include CI/metrics changes, CLI improvements and documentation updates on a case by case basis. |
(cherry picked from commit 70a3438)
Problem
Files with 0 size or set to be read with limit 0 are not handled properly by
SequentialFileReader.This bug was introduced by #9701, which:
Summary of Changes
The fix covers two areas:
read_limit == 0(read ops are skipped andstart_buf_indexis never set)