-
Notifications
You must be signed in to change notification settings - Fork 222
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
Added properly error message for system to system container copy #2883
base: main
Are you sure you want to change the base?
Conversation
…into dphulkar/syscontainer
…into dphulkar/syscontainer
…into dphulkar/syscontainer
if cca.FromTo.IsS2S() { | ||
dstContainerName, err := GetContainerName(cca.Destination.Value, cca.FromTo.To()) | ||
if err != nil { | ||
return fmt.Errorf("failed to get container name from destination (is it formatted correctly?)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we add the err with %w to the print statement?
// @brief Thia API check if the container name provided is a system container or not | ||
func IsSystemContainer(containerName string) bool { | ||
// define the system variables for the system containers | ||
systemContainers := []string{"$blobchangefeed", "$logs"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These containers as destination of copy shall be errored out but as source it shall still work. Add test cases around such combinations in E2E
Description
Customers attempt to copy $blobchangefeed in a source to $blobchangefeed in a destination.
Feature / Bug Fix: (Brief description of the feature or issue being addressed)
We should allow copy of system containers to non-system containers, but need better error messaging for system container to system container copies when customers try to execute
Related Links:
Issues
Team thread
Documents
[Email Subject]
Type of Change
How Has This Been Tested?
Manual Testing
Thank you for your contribution to AzCopy!