Create missing resources in sync, allow blob to overlap #2894
+452
−71
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Creates parity with accidental functionality of blob, extends functionality on FNS
Description
As it stands, when using a Blob destination, AzCopy is capable of creating a file if it is missing, as well as a directory if it is missing. However, if a directory stub exists, sync does not allow it to be overwritten, or overlapped, if using trailing slash directory stubs (e.g.
foo/
).In addition, this PR extends the resource creation functionality to containers, shares, and filesystems.
Feature / Bug Fix: Fleshing out the result of undefined behavior with Sync, creating parity with other destination resources.
Related Links:
Email Subject
Re: SciClone/AzCopy issues summary and resolution plan
ADO
#30057272
Type of Change
How Has This Been Tested?
Both sides of the feature, blob overlapping and resource creation, are exhaustively tested with two new E2E tests, covering their relevant scenarios.