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

Create missing resources in sync, allow blob to overlap #2894

Merged
merged 16 commits into from
Jan 22, 2025

Conversation

adreed-msft
Copy link
Member

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

  • Bug fix
  • New feature
  • Documentation update required
  • Code quality improvement
  • Other (describe):

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.

cmd/sync.go Outdated Show resolved Hide resolved
Copy link
Member

@gapra-msft gapra-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. just had one question about the commented test

@adreed-msft adreed-msft force-pushed the adreed/create-resources-allow-blob-overlap branch from 4fa0826 to a0c692f Compare January 16, 2025 23:34
Copy link
Collaborator

@dphulkar-msft dphulkar-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Looks good to me! However, it seems that some tests are failing. Could you please take a look?"

@dphulkar-msft dphulkar-msft added this to the 10.28.0 milestone Jan 20, 2025
@adreed-msft adreed-msft force-pushed the adreed/create-resources-allow-blob-overlap branch from 78e1676 to b134210 Compare January 22, 2025 20:02
@adreed-msft adreed-msft merged commit b42e5a9 into main Jan 22, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants