ImportDriver should wait between ThreadedImporter spawns
Bug #719196 reported by
Vincent Ladeuil
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Distributed Development |
Fix Released
|
High
|
Vincent Ladeuil |
Bug Description
During the wheezy import we encountered a rare race condition while spawning imports.
I say 'rare' because we didn't encounter it during the 15,000 wheezy imports nor during imports covered by our log files (back to 2011-01-16).
The likely culprit is ImportDriver.run() which doesn't wait between spawns.
Changed in udd: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Vincent Ladeuil (vila) |
To post a comment you must log in.
Instead of "doesn't wait between spawns" I think it would be more accurate to say: "doesn't wait until an import has fully spawned before starting the next". What seems to have occur during the wheezy import is that two imports tried to lock the 'meta.db' database at the same time and this operation occurs before the 'import_package.py' script is spawned as a subprocess.
At least, that's my current theory.