ByteBaker commented on issue #146:
URL:
https://github.com/apache/arrow-rs-object-store/issues/146#issuecomment-2741799426
@wjones127 just confirmed with Minio, it does in fact return an `Err` for
not found with correct error variant.
```rust
let store = object_store::aws::AmazonS3Builder::new()
.with_endpoint("http://172.17.0.1:9000")
.with_access_key_id("admin")
.with_secret_access_key("password")
.with_bucket_name("examples")
.with_region("us-east-1")
.with_allow_http(true)
.build()
.unwrap();
if let Err(e) = store
.abort_multipart(&Path::from("/a/b/c"), &("12344".to_string()))
.await
{
println!("Error: {:?}", e);
}
```
generates the following error:
```
Error: NotFound { path: "a/b/c", source: RetryError { method: DELETE, uri:
Some(http://172.17.0.1:9000/examples/a/b/c?&uploadId=12344), retries: 0,
max_retries: 10, elapsed: 1.634802ms, retry_timeout: 180s, inner: Status {
status: 404, body: Some("<?xml version=\"1.0\"
encoding=\"UTF-8\"?>\n<Error><Code>NoSuchUpload</Code><Message>The specified
multipart upload does not exist. The upload ID may be invalid, or the upload
may have been aborted or
completed.</Message><Key>a/b/c</Key><BucketName>examples</BucketName><Resource>/examples/a/b/c</Resource><RequestId>182EA311D60833EC</RequestId><HostId>dd9025bab4ad464b049177c95eb6ebf374d3b3fd1af9251148b658df7ac2e3e8</HostId></Error>")
} } }
```
We should be able to close this.
--
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]