jizezhang opened a new issue, #709:
URL: https://github.com/apache/arrow-rs-object-store/issues/709
**Describe the bug**
<!--
A clear and concise description of what the bug is.
-->
When doing a MPU to S3 with checksum algorithm sha256, got the error
```
<Code>BadDigest</Code><Message>The sha256 you specified did not match the
calculated checksum.</Message>
```
**To Reproduce**
<!--
Steps to reproduce the behavior:
-->
```
use object_store::ObjectStoreExt;
use object_store::aws::AmazonS3Builder;
use object_store::path::Path;
use tracing_subscriber::EnvFilter;
#[tokio::main]
async fn main() {
let client = AmazonS3Builder::from_env()
.with_bucket_name("bucket-name")
.with_region("us-east-1")
.with_checksum_algorithm(object_store::aws::Checksum::SHA256)
.build()
.unwrap();
let mut upload =
client.put_multipart(&Path::from("test-mpu")).await.unwrap();
let res = upload.complete().await.unwrap();
println!("Upload complete: {:?}", res);
}
```
**Expected behavior**
<!--
A clear and concise description of what you expected to happen.
-->
No error.
**Additional context**
<!--
Add any other context about the problem here.
-->
--
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]