Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

13708

May 18th, 2018 04:00

getting Caused by: java.net.SocketException: Connection reset by peer: socket write error

I am getting Caused by: java.net.SocketException: Connection reset by peer: socket write error

when using multi-part upload with SSECustomerKey using Amazon s3 client sdk

                // Create the request to upload a part.

                UploadPartRequest uploadRequest = new UploadPartRequest()//.withSSECustomerKey(SSE_KEY)

                        .withBucketName(bucketName)

                        .withKey(keyName)

                        .withUploadId(initResponse.getUploadId())

                        .withPartNumber(i)

                        .withInputStream(is)

                        .withPartSize(partSize)

                        .withSSECustomerKey(SSE_KEY);

                UploadPartResult uploadResult = S3_CLIENT.uploadPart(uploadRequest);

while upload works fine with single part upload

PutObjectRequest putRequest = new PutObjectRequest(bucketName, keyName, is, metadata).withSSECustomerKey(SSE_KEY);

S3_CLIENT.putObject(putRequest);

why is dell emc ecs throwing java.net.SocketException: Connection reset by peer: socket write error

No Responses!
No Events found!

Top