pause and resume upload to S3 #4323
-
As mentioned in closing comment of issue (#3120) pause and resume upload to S3 using transfermanager was available from version 2.19.0. Are there any related code samples with tests that can be followed for pause and resume? Please advise. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
The S3TransferManager Javadoc has some examples, check the description of resumeUploadFile(): |
Beta Was this translation helpful? Give feedback.
-
@debora-ito I am able to pause and resume S3 upload as mentioned here but observed following 1) Following exception occurs when "ResumableFileUpload resumableFileUpload = upload.pause();" is called. java.util.concurrent.CancellationException: null 2) Even after upload is paused, following log (sample) shows up intermittently. I've attached LoggingTransferListener to uploadFileRequest 2023-08-22 13:04:31.412 INFO 1965867 --- [ Thread-4] s.a.a.t.s.p.LoggingTransferListener : |=========== | 55.2% |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
The S3TransferManager Javadoc has some examples, check the description of resumeUploadFile():
https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/transfer/s3/S3TransferManager.html#resumeUploadFile(software.amazon.awssdk.transfer.s3.model.ResumableFileUpload)
Answer: