2
Vote

Gallery Server Gets in Inconsistent state and Fails to Delete package

description

See work item http://nuget.codeplex.com/workitem/1269 for an example.
Somehow, a package record in the gallery server existed, but the corresponding .nupkg file did not.

Repro steps:
  1. Push a package to the back-end, but don't let it sync to the front-end.
  2. Delete the .nupkg file.
  3. Try to delete the package using nuget.exe.
Expected result: Delete the package
Actual result: Exception message.

Ideally we should prevent getting into this state in the first place, but it would be nice if we could recover gracefully.

comments

Haacked wrote Jul 11, 2011 at 10:25 PM

Note, the repro steps I provided are not to reproduce the original issue. They are only meant to get the site in the error condition. This bug is to make our site more fault tolerance.

We should also try and investigate the steps to get into this condition in the first place.