Comments (5)
This is a trade-off for performance, known issue. It only check file name and size as duplicated file.
Might improve this with Verification Option in coming release.
from amazon-s3-resumable-upload.
Can we add ETag as 3rd parameter to determine the duplicated file? It can be gotten from response of list_objects_v2 and head_object
from amazon-s3-resumable-upload.
First. If we don't know how you calculated the Etag while upload, it cannot be verified while download. But the files can be uploaded with many different tool, with different Etag algorithm. Except you force to use the same tool to upload to the first source S3.
Second. And if we use the auto-generated Etag by S3, then:
When you upload a file, the file will be split into multipart and merge on S3. For example upload 14MB file with aws cli, it may be split into 5MB+5MB+4MB. The Etag on S3 is calculated as part1 MD5 + part2 MD5 + part3 MD5, and MD5 again, then add "-" with parts number. The S3 auto-generated Etag will be "1111111111111111-3".
The other tool may upload the file with 8MB+6MB. The Etag will be "222222222222222-2"
So if you upload with different split way, Etag will be different.
Funny thing is, I actually use this way to verify MD5 while uploading to destination S3 with S3 auto-generated Etag.
from amazon-s3-resumable-upload.
Mark a real example Etag generated by S3 of a file 19.9MB.
Split part size: 5MB, Etag: e4289d4b51256e46b15e58de0b8961e3-4
Split part size: 6MB, Etag: 1c9f78d2cca8c1772e97535282d67423-4
from amazon-s3-resumable-upload.
Yes, I see the code "ifVerifyMD5" part, understand the limitation of adding the ETag. Thanks for clarify.
from amazon-s3-resumable-upload.
Related Issues (20)
- cdk-serverless can not deploy HOT 4
- 3T数据从OSS同步S3,有没有办法可以提速?5个小时内完成同步 HOT 8
- cluster edition report error HOT 1
- Cluster model can not sync the data with error Fail to list multipart upload - hawkey999/s3-migration-test/... HOT 1
- Can't do "cdk synth" on cdk-cluster.
- cdk-cluster aws-cdk.aws_s3_deployment not found
- Crontab s3_migration_cluster_jobsender.py
- cannot create subfolder under windows environment HOT 1
- Windows下传输完成之后,出现WARING - There are xx files not in destination or not the sam size HOT 1
- Does this tool support --no-sign-request? HOT 2
- get error when run too many tasks HOT 1
- pre signed S3 url download usage help HOT 1
- ModuleNotFoundError: No module named 'aws_cdk.aws_events_targets' HOT 1
- Serverless 版本部署完毕后会立即启动 jobsender么?还是必须等待一个小时之后 HOT 8
- S3 Object Metadata has been changed HOT 2
- s3-migrate-serverless-s3migratejobsender 执行错误 HOT 1
- support s3 bucket with RequestPayer HOT 3
- Serverless version CN to Standard Partition failed HOT 2
- aws cdk AutoScalingGroup now support enable GroupMetric HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-s3-resumable-upload.