-
Couldn't load subscription status.
- Fork 55
change aws s3 cli to aws-sdk #457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change aws s3 cli to aws-sdk #457
Conversation
…x/m2m_token_caching_fix Avoid reusing the global variable for client
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, works good.
Though there is one performance issue. Before, we use AWS CLI move command which moves the file without downloading it. Now the script first downloads the file and after uploads, for the big files it would be very slow, and most likely request for creating an attachment would fail after reaching the timeout.
-
To fix it, we can replace
getandputoperations with onecopyoperation, so we don't have to download the file and it should work much faster as it would copy the object between the buckets internally by AWS https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#copyObject-property. -
Let's catch error during
deleteoperation separately, so it doesn't break the wholes3FileTransfermethod. So if we copy file successfully, but couldn't delete it,s3FileTransferstill return success. We still have to log an error if deleting failed for debugging.
|
@maxceem please review again, I use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
641f8c5
into
topcoder-platform:feature/file-transfer-s3-improvements
|
thanks, your method is better then mine, |
|
@maxceem can we create hotfix instead of feature fix? |
|
@vikasrohit I was thinking that we would make a release this week anyway, so created a feature branch. Also, it's better to test it on DEV a little. Another thing, it looks like we have a redundant code there and unnecessarily call So after testing this fix, I was going to remove that call and also test without it. Let me know if you still would like to have a hotfix for this. Should hotfix include the second part with removing unnecessary call or no? |
|
Makes sense. I was only worried if by any unavoidable reason, we have to push the release. Most probably we should be releasing on Thursday. However, I think we do need some time in dev to test out the changes, so lets keep it feature for now and in case we don't have release this week on Thursday, we would make it hotfix. |
|
@vikasrohit it looks like on DEV file uploading is not fully enabled. Files are visually uploaded but I cannot open them after. Could we enable file uploading on DEV for now, so we can fully validate it? |
|
I think last time we made it enabled. I am not sure why it is not working now. I can check again, it was an env variable which used to prevent the actual file upload in dev. |


No description provided.