Potential DB threadpool exhaustion issue in bootresources.py
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
MAAS | Status tracked in 3.6 | |||||
3.3 |
Won't Fix
|
Medium
|
Unassigned | |||
3.4 |
Won't Fix
|
Medium
|
Unassigned | |||
3.5 |
Won't Fix
|
Medium
|
Unassigned | |||
3.6 |
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 |
Changed in maas: | |
milestone: | 3.4.x → 3.5.x |
no longer affects: | maas/3.3 |
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.