-
Notifications
You must be signed in to change notification settings - Fork 227
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
Fix for File Share Limit Reached Error #2895
Conversation
…into wendi/full-fileshare pull
…-storage-azcopy into wendi/full-fileshare pull
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.
Test doesn't adequately test the change in question
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.
Looks good-- One concern about test efficiency that I'd like you to take a proper look at, but worst case it can be a remediation item next release.
…-storage-azcopy into wendi/full-fileshare pull
Description
Changes:
panic
from closing channels.ShareSizeLimitReached
error to guide users on how to handle the errorShareSizeLimitReached
errorFeature / Bug Fix: (Brief description of the feature or issue being addressed)
User reported this AzCopy behavior when uploading data to a file share that exceeds the quota (i.e uploading 4GB to a 1GB file share). When the quota is hit, the ongoing job is stopped and the already uploaded files are not deleted. AzCopy team concluded this is not a bug. There is a high chance of unnecessary failed API calls after the
ShareSizeLimitReached
error is hit. Thus, the current behavior of stopping the job is valid.Related Links:
Issues
Email: Expected AzCopy Behavior When Exceeding Quotas
Type of Change
How Has This Been Tested?
Existing e2e tests and new
Scenario_UploadFileQuota
testAzCopy randomly uploads files to the file share until the quota is hit. Wrote a script to validate that these uploaded files are non-empty. If empty files are uploaded, they are correctly deleted in the cleanup handler in the codebase.
Thank you for your contribution to AzCopy!