Potential DB threadpool exhaustion issue in bootresources.py
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Triaged
|
Medium
|
Jacopo Rota | ||
3.3 |
Triaged
|
Medium
|
Unassigned |
Bug Description
deferToDatabase() is meant to be used to run all DB-accessing code, and there's a threadpool (9 threads), each with own DB connection, to allow parallel queries. The code that is "deferredToData
The following call sequence contains a deferToDatabase() call inside another deferToDatabase() call:
https:/
https:/
https:/
Changed in maas: | |
status: | New → Confirmed |
status: | Confirmed → Triaged |
milestone: | none → next |
importance: | Undecided → High |
Changed in maas: | |
milestone: | 3.3.0 → 3.4.0 |
Changed in maas: | |
assignee: | nobody → Jacopo Rota (r00ta) |
Changed in maas: | |
milestone: | 3.4.0 → 3.4.x |
Let's introduce a test case to confirm whether the assumption that this will lead to a deadlock is correct, and re-triage this issue accordingly.