Skip to content
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

AzCopy sync with hash-meta-dir hides original files #2758

Closed
tsvietOK opened this issue Jul 24, 2024 · 6 comments · Fixed by #2786
Closed

AzCopy sync with hash-meta-dir hides original files #2758

tsvietOK opened this issue Jul 24, 2024 · 6 comments · Fixed by #2786
Assignees
Labels
Milestone

Comments

@tsvietOK
Copy link

tsvietOK commented Jul 24, 2024

Which version of the AzCopy was used?

10.25.1

Note: The version is visible when running AzCopy without any argument

Which platform are you using? (ex: Windows, Mac, Linux)

Windows

What command did you run?

azcopy sync ".\testData\" "https://<storage>.blob.core.windows.net/<container>/<folderName>/?sp=<sig>" --delete-destination true --exclude-path "backup;import;system/caches" --compare-hash "MD5" --put-md5 --cap-mbps 200 --local-hash-storage-mode HiddenFiles --hash-meta-dir "E:\hash-meta"

Note: Please remove the SAS to avoid exposing your credentials. If you cannot remember the exact command, please retrieve it from the beginning of the log file.

What problem was encountered?

Command succeeded, but it created a new folder E:\hash-meta with metadata. After that, I noticed that all the files in the original folder were hidden.

How can we reproduce the problem in the simplest way?

  1. Create folder testData with test files
  2. Run powershell in the testData folder
  3. Run command (change hash meta dir to your place) azcopy sync ".\testData\" "https://<storage>.blob.core.windows.net/<container>/<folderName>/?sp=<sig>" --delete-destination true --exclude-path "backup;import;system/caches" --compare-hash "MD5" --put-md5 --cap-mbps 200 --local-hash-storage-mode HiddenFiles --hash-meta-dir "E:\hash-meta"
  4. Check that the data files (in folder testData) are hidden and meta data (folder hash-meta) files are not hidden.

Have you found a mitigation/solution?

No

@tsvietOK
Copy link
Author

image
image

@tsvietOK
Copy link
Author

@ktrace2
Copy link

ktrace2 commented Jul 26, 2024

azcopy kept crashing on me when using the hash-meta-dir option. I assumed it was related to this bug.

@ashruti-msft
Copy link
Collaborator

azcopy kept crashing on me when using the hash-meta-dir option. I assumed it was related to this bug.

@ktrace2 which version of azcopy are you using when it crashes? Also can you share your debug logs for that particular run?

@adreed-msft
Copy link
Member

This looks very much like a bug, yes... I'll add this to our backlog, hopefully we can get to it this release.

azcopy kept crashing on me when using the hash-meta-dir option. I assumed it was related to this bug.

It's possible. Do you have the logs for this crash? What version were you on?

@tsvietOK
Copy link
Author

tsvietOK commented Aug 8, 2024

This looks very much like a bug, yes... I'll add this to our backlog, hopefully we can get to it this release.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants