Skip to content

Conversation

zoewangg
Copy link
Contributor

…led for a PUT operation in the AWS CRT-based S3 client

Motivation and Context

#4305
CRT has made a fix to lift the requirement of buffer being completely filled.

Modifications

Updated the request body adapter to not block the read until the byte buffer is filled

Testing

Running existing tests.

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have read the CONTRIBUTING document
  • Local run of mvn install succeeds
  • My code follows the code style of this project
  • My change requires a change to the Javadoc documentation
  • I have updated the Javadoc documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed
  • I have added a changelog entry. Adding a new entry must be accomplished by running the scripts/new-change script and following the instructions. Commit the new file created by the script in .changes/next-release with your changes.
  • My change is to implement 1.11 parity feature and I have updated LaunchChangelog

License

  • I confirm that this pull request can be released under the Apache 2 license

@zoewangg zoewangg requested a review from a team as a code owner August 15, 2023 20:34
…led for a PUT operation in the AWS CRT-based S3 client
@zoewangg zoewangg force-pushed the zoewang/s3crt-notBlocking branch from e757a0b to ff741db Compare August 31, 2023 21:38

// blocking here because CRT S3 requires the buffer to be completely filled
return requestBodySubscriber.blockingTransferTo(outBuffer) == ByteBufferStoringSubscriber.TransferResult.END_OF_STREAM;
return requestBodySubscriber.transferTo(outBuffer) == ByteBufferStoringSubscriber.TransferResult.END_OF_STREAM;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Integ tests and stability tests passed

@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 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@zoewangg zoewangg merged commit d25332d into master Sep 8, 2023
@zoewangg zoewangg deleted the zoewang/s3crt-notBlocking branch September 8, 2023 16:57
aws-sdk-java-automation added a commit that referenced this pull request Sep 18, 2025
…9b8407500

Pull request: release <- staging/995c1288-a6cb-4871-8530-d579b8407500
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.

2 participants