Data integrity when uploading objects using BlockingInputStreamAsyncRequestBody
#5957
Labels
bug
This issue is a bug.
investigating
This issue is being investigated and/or work is in progress to resolve the issue.
p1
This is a high priority issue
Describe the bug
This issue reproduces a bug in the AWS SDK for Java (S3 Async Client) where data integrity is not preserved when uploading large objects (e.g., 50 MB) using
BlockingInputStreamAsyncRequestBody
. The uploaded data's SHA-256 digest does not match the downloaded data's digest, indicating corruption or mishandling during the upload/download process.If I reduce the stream size (eg. to 10mb), the test succeeds.
Regression Issue
Expected Behavior
I would expect this test to succeed.
Current Behavior
The test fails because the upload digest (
uploadDigest
) does not match the download digest (downloadDigest
).Reproduction Steps
Run the test
Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
2.30.38
JDK version used
openjdk version "21.0.5" 2024-10-15 LTS OpenJDK Runtime Environment Temurin-21.0.5+11 (build 21.0.5+11-LTS) OpenJDK 64-Bit Server VM Temurin-21.0.5+11 (build 21.0.5+11-LTS, mixed mode, sharing)
Operating System and version
Ubuntu 24.04.1 LTS
The text was updated successfully, but these errors were encountered: