-
Notifications
You must be signed in to change notification settings - Fork 225
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 proper error message for system to system container copy #2883
base: main
Are you sure you want to change the base?
Changes from 9 commits
a4c7020
eecaf2c
8f6e90e
ffbf237
bed0f80
3855acf
78e4f37
813b61c
bec4940
1369973
eb64aa1
0dcfaf5
5879dd6
5dd5309
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -382,3 +382,15 @@ func DoWithOverrideReadOnlyOnAzureFiles(ctx context.Context, action func() (inte | |
_, err = action() | ||
return err | ||
} | ||
|
||
// @brief Thia API check if the container name provided is a system container or not | ||
dphulkar-msft marked this conversation as resolved.
Show resolved
Hide resolved
|
||
func IsSystemContainer(containerName string) bool { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is it possible that the input $ is encoded when it gets here? Would be good to check that case as well |
||
// 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 commentThe 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 |
||
for _, sys := range systemContainers { | ||
if containerName == sys { | ||
return true | ||
} | ||
} | ||
return false | ||
} |
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?