Actions
Defect #44375
openConcurrency problem in project deletion / project marking for deletion
Status:
New
Priority:
Normal
Assignee:
-
Category:
Database
Target version:
-
Resolution:
Affected version:
Description
The problem we noticed was:
- a user selects some projects to be bulk deleted and submits the request
- other projects than the selected projects get marked as STATUS_SCHEDULED_FOR_DELETION
- the correct originally select projects are deleted
Our analysis showed that between selecting the projects in the ProjectsController#bulk_delete and updating the projects with the STATUS_SCHEDULED_FOR_DELETION in DestroyProjectJob.schedule another previous DestroyProjectJob might change the Project tree, which then leads to project.self_and_descendants in DestroyProjectJob.schedule to select the wrong projects.
Files
Actions