-
Notifications
You must be signed in to change notification settings - Fork 643
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
While uploading package, the entry can be added to database, even if the upload to blob storage fails #1836
Comments
Looks like this is more likely to happen when we push packages using NuGet.exe command line. While uploading packages from UI, changes to DB is made only after the packages gets pushed to blob(https://github.com/NuGet/NuGetGallery/blob/master/src/NuGetGallery/Controllers/PackagesController.cs#L888). Where as while uploading from command line, saving to DB is done before pushing file to blob. (https://github.com/NuGet/NuGetGallery/blob/master/src/NuGetGallery/Controllers/ApiController.cs#L277) |
This sounds like a Pri 1. Bug for packages upload from the command line. Can you confirm? |
Was this one fixed? |
Was fixed. |
While doing package upload, the package is uploaded to blob and then the changes to database is commited. Since this is not a single atomic action, failure in the former doesn't guarentee abortion of the latter. We need to add more checks around it.
The text was updated successfully, but these errors were encountered: