Skip to content

Fix SDK behavior when request content-length does not match the data length returned by the publisher. #2788

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 25, 2021

Conversation

millems
Copy link
Contributor

@millems millems commented Oct 22, 2021

This fixes two bugs:

  1. A source of "checksum mismatch" exceptions (S3: Data read has a different checksum than expected #953) when the published data length exceeds the content-length.
  2. A source of "hung futures" (S3 putObject (async) is hanging when using ByteArrayAsyncRequestBody #2576?) when the published data is shorter than the content-length.

This may not be the definitive fix for those two issues.

@millems millems force-pushed the millem/async-content-length-fixes branch from 1b8de1b to b8eec86 Compare October 22, 2021 20:16
@millems millems force-pushed the millem/async-content-length-fixes branch from b8eec86 to 8b7d89d Compare October 22, 2021 20:49
@millems millems force-pushed the millem/async-content-length-fixes branch from 8b7d89d to dc773ec Compare October 25, 2021 17:16
…length returned by the publisher.

This fixes two potential bugs:
1. A source of "checksum mismatch" exceptions (#953) when the published data length exceeds the content-length.
2. A source of "hung futures" (#2576?) when the published data is shorter than the content-length.

This may not be the definitive fix for those two issues.
@millems millems force-pushed the millem/async-content-length-fixes branch from dc773ec to 6246e74 Compare October 25, 2021 21:21
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

82.4% 82.4% Coverage
0.0% 0.0% Duplication

@millems millems merged commit cea7a9f into master Oct 25, 2021
@millems millems deleted the millem/async-content-length-fixes branch October 25, 2021 23:31
aws-sdk-java-automation added a commit that referenced this pull request Nov 16, 2023
…8b68d6c70

Pull request: release <- staging/0017c096-a560-41bd-97eb-4a78b68d6c70
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants