Xuanwo opened a new pull request, #9069: URL: https://github.com/apache/opendal/pull/9069
# Which issue does this PR close? Refs #8157 (S3 batch error attribution). # Rationale for this change A quiet `DeleteObjects` response identifies failed entries by key and version ID. When a batch contains two `If-Match` conditions for the same object version, a single error does not identify which condition failed. On versioned SeaweedFS 4.52, when the matching condition appeared first on the wire, OpenDAL kept the successful delete pending and discarded the stale entry. The next `Deleter::close()` retried the matching ETag. Both closes returned `ConditionNotMatch`. # What changes are included in this PR? Send a native `DeleteObjects` request with at most one entry for each key and version ID. Use individual conditional deletes for the other entries with the same identity. Record each individual result so a request failure after a successful native batch preserves the completed deletes. Verified through the public `Deleter` against versioned SeaweedFS 4.52 on `f5ef36e71e` and `b3a1241646`. The candidate retried only the stale ETag in both enqueue and both wire orders. Distinct keys and distinct versions of the same key still used one native batch. A loopback relay also injected HTTP 403 on an individual request after a successful native batch. The next close retried only the failed request. # Are there any user-facing changes? Retrying `Deleter::close()` retains the failed entries when multiple delete conditions target the same key and version. Those collisions can require additional HTTP requests. # Breaking changes # AI Usage Statement | Harness | Model | Effort | Role | | --- | --- | --- | --- | | T3 Code / Pi | `magpie/codex/gpt-6.2-astra` | `high` | Investigated and reproduced the issue on versioned SeaweedFS, and scoped the repair. | | T3 Code / Pi | `magpie/codex/gpt-6.2-sol` | `xhigh` | Implemented the S3 fix, wrote the regression test, verified the parent and candidate on local SeaweedFS, and drafted this description. | | T3 Code / Pi | `magpie/agy-cli/gemini-4-neon` | `high` | Reviewed the implementation and retry semantics, checked the service evidence, and reran the S3 and core checks. | -- 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]
