Xuanwo opened a new pull request, #8765: URL: https://github.com/apache/opendal/pull/8765
# Which issue does this PR close? N/A. # Rationale for this change `ObjectStoreWriter` submitted parts in mutex acquisition order, while `object_store` assigns part IDs when `put_part` is called. Concurrent OpenDAL part tasks could therefore silently reorder bytes in the completed object. # What changes are included in this PR? - Buffer out-of-order parts and call `put_part` only for the next contiguous sequence, while polling upload futures concurrently outside the mutex. - Validate the completed part set, reject duplicate or missing parts, and prevent completion after upload failures. - Clear pending parts on abort and add deterministic reversed-order, multi-part, and abort regression tests. # Are there any user-facing changes? Multipart writes through the object store-backed OpenDAL service now preserve the caller's byte order when part uploads complete out of order. # Breaking changes # AI Usage Statement - Harness: Pi coding agent - Model: kimi-code-cn/k3.1-pro - Effort: max - Role: AI authored the implementation and regression tests, reproduced the ordering corruption with the in-memory object store, and ran the requested formatting, lint, and test validation. No external service-specific behavior is assumed. -- 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]
