-
Notifications
You must be signed in to change notification settings - Fork 133
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
Data loss occured while copying data between Azure File shares using ServiceSideAsyncCopy #260
Comments
I'm looking to reproducing your error currently. Does this consistently occur when using 2.0.1 and not the previous version (I saw your other issue where you were asking if another File Share problem was fixed) |
Also another question I have is how large is the file share you are attempting to copy (e.g. how many files, directories and avg size of those files). Does this only happen with a large file share or does can it be replicated with a smaller file. Are the files that aren't copied random (aka copied with 0 length) or does is consistently do it to the same files. Looks like from your code snippet, that the TransferStatus is getting returned by the CopyDirectory method, and that it is returning the number of files that were failed to transfer. However you're doing this check after your personal validation, so my question is, is the TransferStatus returning back the number of failed files for you? Because if anything this check should be before your validation because DMLib would have informed you that there were some files that it was unable to copy. |
Sorry, for the delay. I somehow missed your message.
We've seen this problem occur also with 2.0.0. I'm not 100% but I think we also found one case of corruption with a version < 2.0.0 |
The shares have from hundreds to a couple of thousands of files. The size of the files varies from 1k to a couple of megs. We run the move tasks as part of our E2E Test and this problem occurs daily. We run around 10 builds a day so not every build suffers from it.
|
Any movement on this front? Can I help in any way? |
Which service(blob, file) does this issue concern?
Azure Files
Which version of the SDK was used?
2.0.1
On which platform were you using? (.Net Framework version or .Net Core version, and OS version)
Linux (AKS)
How can the problem be reproduced? It'd be better if the code caused the problem can be shared.
We transfered files between 2 file shares located on 2 different Azure Storage accounts in West US 2.
What problem was encountered?
Data loss. Some files were created with length 0.
Have you found a mitigation/solution?
We run custom code that compares the content of the source and destination shares. The code compares the size of the files in both locations(unfortunately MD5 property is not populated), deletes the ones that failed to transfer, and retries the copy operation.
AssertNoTransferFailures
method contains this code.Code
File Shares
The text was updated successfully, but these errors were encountered: