Skip to content

Conversation

@azkrishpy
Copy link
Contributor

Issue #, if available:
aws/aws-sdk-java-v2#6666

Description of changes:
When allocating GetDirectByteBuffer takes values > Integer.MAX_VALUE, JNI returns a null buffer due to an Illegal Argument exception.
Resolving this issue by allocating and reading data into smaller buffers until part size is reached to perform the UploadPart operation instead of allocating one big buffer.
Adding a test to ensure this works correctly.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

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.

1 participant