Repository navigation
fix(fileservice): avoid full-object reads without disk cache - #32137
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: d7ed009a274e3147fe192044b05b1f36d33d623b
Assessment: approve
The fix reuses existing minimal-range selection without adding state or mechanisms. It preserves disk-cache full-object fills, suffix reads and caller policy. No actionable defects remain.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
Validation:
-
Reviewed the complete delta, discussion, linked issue, affected consumers and reader cleanup paths.
-
Reused frozen current-head successful build, UT, SCA, coverage and multi-CN BVT evidence.
-
Verified relevant inputs remained unchanged through the merge, supporting reuse of the author's reported package and focused normal/race tests.
-
Local source, patch, formatting and discussion-coverage audit passed: checks/1793770701023849476-2.json, source-audit.log and source-audit.json.
Limitations:
-
Local Go tests were not rerun; raw author execution logs were not supplied.
-
Live MinIO/S3, the original 40,000-row SQL scenario and production-scale performance were not validated on this candidate.
✅ Merged into
|
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #31692
What this PR does / why we need it:
Address the remaining uncached-read amplification reported in the validation comment. #32053 fixed bounded MinIO requests, but S3FS still expanded buffered reads to the full object under the default policy even when configuration disabled the disk cache. The downloaded suffix could not be retained for reuse.
Validation on macOS arm64, Go 1.27.1:
-race, including MinIO retry offsets/upper bounds, identity failures, cancellation, and early-close cleanup.Limitations: no live MinIO/S3 service or original 40,000-row SQL scenario was rerun. Credential-dependent/opt-in cases remain skipped; this is not complete QA or production-scale performance acceptance. No SQL BVT was added because SQL result/error semantics are unchanged and the HTTP byte-count oracle directly verifies this storage boundary.