Red Hat Bugzilla – Bug 824425
[BUG] if scheduler rolls back recipe its possible for repo to be generated.
Last modified: 2013-09-19 19:09:55 EDT
Description of problem:
In the scheduler code we create the test harness repo for each recipe at schedule time. If the db rolls back we don't delete the repo we created and if the recipe is cancelled it won't bother deleting the repo since it doesn't think it should have one yet.
Version-Release number of selected component (if applicable):
Bulk reassignment of issues as Bill has moved to another team.
As of Beaker 0.12 this is not really an issue. The task repo can be leaked if the schedule_queued_recipe transaction aborts (though this is unlikely, since the repo creation happens very late in the transaction for exactly this reason), but even if it is leaked, we abort the recipe in a subsequent transaction. And update_status will then clean up any extant repo when it sees the recipe is finished.