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

   # Which issue does this PR close?
   
   No issue was filed for this focused retry-layer bug.
   
   # Rationale for this change
   
   `RetryService` left `Operation::Compose` unwrapped. Temporary errors from 
composer creation, source acceptance, and `close()` were not retried, and 
composer bodies bypassed the retry budget. `Read`, `Write`, `List`, `Delete`, 
and `Copy` already handle their stateful bodies through `RetryWrapper`.
   
   # What changes are included in this PR?
   
   - Retry `Service::compose` with `retry_blocking(Operation::Compose, ...)` 
and return `RetryWrapper<oio::Composer, I>`.
   - Implement `oio::Compose` for `RetryWrapper`: retry `compose()` and 
`close()` through `RetryPolicy`, mark exhausted temporary errors persistent, 
and deposit the retry budget once after a successful `close()`, matching the 
writer, deleter, and copier implementations.
   - Document that composers deposit on successful close.
   - Add unit coverage for composer initialization retries and exhaustion, 
source-compose retries and immediate non-temporary failure, and close retries, 
exhaustion, returned metadata, and budget reserve/deposit accounting.
   
   Validation run:
   
   - `cargo test -p opendal-layer-retry`
   - `cargo test -p opendal-layer-retry --all-features`
   - `cargo clippy -p opendal-layer-retry --all-targets --all-features -- -D 
warnings`
   - `cargo fmt --all -- --check`
   
   # Are there any user-facing changes?
   
   `RetryLayer` now retries temporary errors from composer creation, 
`Composer::compose`, and `Composer::close`, and successful composer close 
participates in the shared retry budget. The public API is unchanged.
   
   # Breaking changes
   
   # AI Usage Statement
   
   - Harness: pi coding agent
   - Model: group/deepseek
   - Effort: max
   - Role: Implemented the retry-layer change and unit tests, ran the listed 
Rust checks, and prepared this pull request under human review. No assumptions 
or known unknowns affect the contract described above.
   


-- 
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