Exception: deadlock detected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Blake Rouse | ||
1.7 |
Fix Released
|
Critical
|
Blake Rouse |
Bug Description
I have a MAAS with 100+ nodes in it, and in its maas-django.log I'm seeing these errors from time to time, especially if I try to start many nodes at once.
ERROR 2014-12-12 16:30:25,747 maasserver #######
DETAIL: Process 746 waits for ShareLock on transaction 43344353; blocked by process 742.
Process 742 waits for ExclusiveLock on tuple (5,3) of relation 16585 of database 16385; blocked by process 746.
HINT: See server log for query details.
######
ERROR 2014-12-12 16:30:25,747 maasserver Traceback (most recent call last):
File "/usr/lib/
response = wrapped_
File "/usr/lib/
node.save()
File "/usr/lib/
return super(CleanSave, self).save(*args, **kwargs)
File "/usr/lib/
return super(Timestamp
File "/usr/lib/
force_
File "/usr/lib/
updated = self._save_
File "/usr/lib/
forced_update)
File "/usr/lib/
return filtered.
File "/usr/lib/
return query.get_
File "/usr/lib/
cursor = super(SQLUpdate
File "/usr/lib/
cursor.
File "/usr/lib/
return self.cursor.
File "/usr/lib/
six.
File "/usr/lib/
return self.cursor.
OperationalError: deadlock detected
DETAIL: Process 746 waits for ShareLock on transaction 43344353; blocked by process 742.
Process 742 waits for ExclusiveLock on tuple (5,3) of relation 16585 of database 16385; blocked by process 746.
HINT: See server log for query details.
Related branches
- Jason Hobbs (community): Approve
- Newell Jensen (community): Approve
-
Diff: 73 lines (+31/-5)2 files modifiedsrc/maasserver/api/pxeconfig.py (+9/-4)
src/maasserver/api/tests/test_pxeconfig.py (+22/-1)
- Blake Rouse (community): Approve
-
Diff: 69 lines (+28/-4)2 files modifiedsrc/maasserver/api/pxeconfig.py (+6/-3)
src/maasserver/api/tests/test_pxeconfig.py (+22/-1)
description: | updated |
Changed in maas: | |
status: | New → In Progress |
importance: | Undecided → Critical |
assignee: | nobody → Blake Rouse (blake-rouse) |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
This bug has been reported and fixed on upstream MAAS. However, provided that the bug was listed on the debian changelog, this appears as needing verification for pending SRU [1]. This bug did not affect current MAAS in Ubuntu, hence setting this to verification-done to unblock pending SRU.
[1]:http:// people. canonical. com/~ubuntu- archive/ pending- sru.html