Mola-maker opened a new issue, #9058: URL: https://github.com/apache/opendal/issues/9058
### OpenDAL version or commit main (57f8b75) ### Affected service or component integrations/object_store (`OpendalMultipartUpload`) ### Describe the bug Each `put_part` future waits for a notification from the previous part's future before it writes. That notification fires only after the previous future has been polled to success. If a caller awaits the part futures one at a time in a different order than they were created, the upload **hangs forever** instead of returning an error. The `object_store` docs say `put_part` futures "may be polled in parallel". object_store's own conformance test `object_store::integration::multipart_out_of_order` creates three parts and then awaits `fut2`, `fut3`, `fut1`. Against `OpendalStore`, that test never finishes on either the `memory` or `fs` backend. ### Steps to Reproduce ```rust let mut upload = store.put_multipart(&path).await?; let fut1 = upload.put_part(part1.into()); let fut2 = upload.put_part(part2.into()); let fut3 = upload.put_part(part3.into()); fut2.await?; // never completes: waits for fut1, which is not polled yet fut3.await?; fut1.await?; upload.complete().await?; ``` I ran `object_store::integration::multipart_out_of_order` against `OpendalStore` with a 60 s timeout (Windows 11, main 57f8b75): ``` TIMEOUT memory multipart_out_of_order TIMEOUT fs multipart_out_of_order ``` ### Actual Behavior The first awaited future never completes. ### Expected Behavior Awaiting the part futures in any order completes, and the object contains the parts in `put_part` call order. ### Additional Context The README says parts are written sequentially in call order. That can still hold if `put_part` queues the data in call order and whichever future runs first writes everything queued so far. Dropped and failed parts can keep poisoning the upload as they do today. ### Reproduction confirmation - [x] I reproduced this issue against the affected component. For a service-specific report, I used the actual service rather than only a mock, emulator, or source-code analysis. ### Are you willing to submit a PR to fix this bug? - [x] Yes, I would like to submit a PR. -- 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]
