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

While uploading package, the entry can be added to database, even if the upload to blob storage fails #1836

Closed
bhuvak opened this issue Jan 8, 2014 · 5 comments

Comments

@bhuvak
Copy link
Contributor

bhuvak commented Jan 8, 2014

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.

@ghost ghost assigned bhuvak Jan 8, 2014
@bhuvak
Copy link
Contributor Author

bhuvak commented May 30, 2014

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)

@analogrelay analogrelay modified the milestones: D10: V2 Gallery Bug Fixes, D8: V2 Gallery Bug Fixes Jun 2, 2014
@bhuvak bhuvak removed this from the GAL1: V2 Gallery Bug Fixes milestone Apr 21, 2015
@johnataylor johnataylor added this to the 3.0.0 RTM milestone May 1, 2015
@johnataylor
Copy link
Member

This sounds like a Pri 1. Bug for packages upload from the command line. Can you confirm?

@maartenba
Copy link
Contributor

Was this one fixed?

@skofman1
Copy link
Contributor

@shishirx34 shishirx34 self-assigned this Feb 11, 2017
@skofman1 skofman1 removed this from the 3.0.0 RTM milestone Feb 28, 2017
@skofman1
Copy link
Contributor

Was fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants