Issue with TransferListener Callbacks Not Triggering for CopyObjectRequest #5124
Unanswered
supremvanam
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am currently working with the AWS SDK for Java and leveraging the TransferListener interface to monitor S3 operations. I've successfully implemented and tested the TransferListener's callbacks during Upload and Download operations where all four methods (transferInitiated, bytesTransferred, transferComplete, and transferFailed) are appropriately called. However, I'm facing a peculiar issue with the CopyObjectRequest.
When performing a CopyObjectRequest, only the transferInitiated and transferFailed callback is triggered, and the other two (bytesTransferred, transferComplete) are not triggered, even though the copy operation completes successfully (I have verified the files in both source and destination locations). This behaviour is consistent regardless of the object size or the region.
Could anyone explain why CopyObjectRequest might behave differently in triggering TransferListener callbacks? Is there a different approach or a specific configuration required to fully utilize TransferListener for copy operations?
Thank you in advance for your insights and suggestions!
Beta Was this translation helpful? Give feedback.
All reactions