Xuanwo opened a new pull request, #8777:
URL: https://github.com/apache/opendal/pull/8777

   # Which issue does this PR close?
   
   N/A
   
   # Rationale for this change
   
   `object_store::GetRange::as_range` rejects empty, reversed, and 
out-of-bounds-start ranges, while clamping valid ranges that extend beyond EOF. 
`OpendalStore` previously returned empty results for invalid ranges and could 
fail valid over-EOF `get_ranges` requests.
   
   # What changes are included in this PR?
   
   - Normalize `get_opts` ranges with `GetRange::as_range`.
   - Validate bounded ranges passed to `get_ranges`; after an unsatisfiable or 
short fetch, obtain the object size and retry only if normalization changes the 
ranges. Normal fetches remain stat-free.
   - Add deterministic regression coverage against 
`object_store::memory::InMemory`, including empty objects, suffixes, offsets, 
and bounded ranges.
   
   # Are there any user-facing changes?
   
   Invalid ranges now return errors instead of empty results. Valid ranges 
extending beyond EOF return the available bytes. No public API changes.
   
   # Breaking changes
   
   # AI Usage Statement
   
   - Harness: pi
   - Model: kimi-code-cn/k3.1-pro
   - Effort: max
   - Role: Implemented the range normalization and regression tests, and 
validated them with the in-memory backends.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to