JVM Crash: Fatal Error - Issue with Native Method s3ClientMakeMetaRequest in S3Client #716
Labels
bug
This issue is a bug.
needs-review
This issue or pull request needs review from a core team member.
p2
This is a standard priority issue
Describe the bug
Encountered a fatal error when creating an
S3AsyncClient
, configuring it, closing it immediately, and then attempting to perform an asynchronousputObject
operation. The crash is triggered, resulting in a JVM crash.Expected Behavior
Should gracefully handle the scenario where a
putObject
operation is attempted on a closedS3AsyncClient
without causing a fatal error in the JVM.Current Behavior
The JVM crashes with an error in the native method
software.amazon.awssdk.crt.s3.S3Client.s3ClientMakeMetaRequest
when attempting to perform aputObject
operation on aS3AsyncClient
that has been closed.Reproduction Steps
S3AsyncClient
with specific configuration settings.PutObjectRequest
specifying the destination bucket and key for the S3 object.S3AsyncClient
immediately after creation.S3AsyncClient
.Observe the JVM crash and review the logs here in the sample project (https://github.com/kcsurapaneni/java-aws-sdk) available on GitHub for detailed information.
Possible Solution
Ensure that the library gracefully handles scenarios where operations are attempted on a closed client.
Additional Information/Context
Relevant code snippet
aws-crt-java version used
0.28.6
Java version used
1.8(Amazon Coretto), 17(Oracle, Zulu, Amazon Coretto)
Operating System and version
macOS 14.1
The text was updated successfully, but these errors were encountered: