-
Notifications
You must be signed in to change notification settings - Fork 29
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
Content-MD5 .... not quite there... #57
Comments
I suspect what might be happening is:
From the docs (https://docs.microsoft.com/en-us/rest/api/storageservices/put-block-list):
|
Thanks for the follow up. BlobPorter uses blocks for all the transfers, this is what allows the high level of concurrency and maximizes throughput. The current implementation calculates a block level MD5 (option -m), which addresses the concern of data integrity during transfer - this value is validated by the storage backend. As you've pointed out, the content md5 (whole blob) is not validated by Azure storage. Considering this and the fact that computing a blob wide MD5 would be a resource intensive pre-processing step (must be done sequentially and prior to the transfer), little value would be provided while affecting the overall transfer time. As an alternative, we are considering an approach where you can pre-calculate the MD5, using the tool of your own choosing, prior to the transfer and then you can pass it to BlobPorter. In effect, treating this value as a metadata item -which is what, technically, this value becomes when it is not validated by the backend. |
So basically keep -m and add an additional metadata parameter for the whole-blob version ? Sounds fair enough. |
Correct, where the whole-blob version will be calculated outside blobporter -e.g. $md5sum file. |
Updating this issue to point to this project that addresses the gap of not been able to calculate the MD5 hash for multi-block blobs https://github.com/giventocode/azure-blob-md5 |
just to clarify here, i am using logic app and have called this action get metadata for blob and I get the properties : { I don't see content MD5 property in here, though i can see it when I go to my blob and right click to properties. Is this a default behavior of logic app?? how can i get the ContentMD5 property |
re: #51
Sorry to flag this one up again but "-m" does not appear to be working as advertised ?
Yields:
As you can see, the
Content-MD5
element is empty, which would not be the case if you were really sending MD5s ....The text was updated successfully, but these errors were encountered: