Skip to content

Fix race condition where a namespace would be deleted before a project was deleted

Stan Hu requested to merge sh-fix-destroy-user-race into master

When deleting a user, the following sequence could happen:

  1. Project mygroup/myproject is scheduled for deletion
  2. The group mygroup is deleted
  3. Sidekiq worker runs to delete mygroup/myproject, but the namespace and routes have been destroyed.

Closes #30334 (closed)

This may also close #30306 (closed), since the deletion of the namespace and project should no longer result in a deadlock.

Merge request reports