Query Deadlock when creating >200 servers at once in sqlalchemy
Bug #1283987 reported by
wingwj
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Eugeniya Kudryashova | ||
oslo.db |
Fix Released
|
Medium
|
wingwj |
Bug Description
Query Deadlock when creating >200 servers at once in sqlalchemy.
--------
This bug occurred when I test this bug:
https:/
The original info is logged here:
http://
--------------
After checking the error-log, we can notice that the deadlock function is 'all()' in sqlalchemy framework.
Previously, we use '@retry_
But it's only available for session deadlock(
So, we need to add the same protction for 'all()' in sqlalchemy.
Changed in nova: | |
assignee: | nobody → wingwj (wingwj) |
Changed in oslo: | |
assignee: | nobody → wingwj (wingwj) |
Changed in nova: | |
status: | Triaged → In Progress |
tags: | added: db |
Changed in oslo: | |
importance: | Undecided → Medium |
affects: | oslo-incubator → oslo.db |
Changed in nova: | |
assignee: | wingwj (wingwj) → Eugeniya Kudryashova (ekudryashova) |
Changed in oslo.db: | |
status: | In Progress → Fix Released |
Changed in nova: | |
milestone: | none → juno-rc1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-rc1 → 2014.2 |
To post a comment you must log in.
One question left:
Should we need to protect more functions in 'Query' used in sqlalchemy?
Like count(), join(), delete()?
Now, only 'all()' will occur deadlock during my test.