[erlang-questions] Mnesia Deadlock

Gordon Guthrie <>
Mon Jun 11 21:28:56 CEST 2012


Folks

I am getting a transactional deadlock:

mnesia:info().
---> Processes holding locks <---
Lock: {{'hypernumbers.dev&9000&item',1339363066444676},
       write,
       {tid,630,<0.263.0>}}
Lock: {{'hypernumbers.dev&9000&local_obj',1339363066444676},
       read,
       {tid,630,<0.263.0>}}
Lock: {{'hypernumbers.dev&9000&site',1339363066444676},
       write,
       {tid,630,<0.263.0>}}
Lock: {{'hypernumbers.dev&9000&del_local',1339363066444676},
       read,
       {tid,630,<0.263.0>}}
Lock: {{'hypernumbers.dev&9000&group',"doobie"},write,{tid,632,<0.281.0>}}
---> Processes waiting for locks <---
Tid {tid,630,<0.263.0>} waits for write lock on oid
{'hypernumbers.dev&9000&group',

'______WHOLETABLE_____'} owned by {tid,

                 632,

                 <0.281.0>}
---> Participant transactions <---
---> Coordinator transactions <---
Tid: 630 (owned by <0.263.0>)
Tid: 632 (owned by <0.281.0>)
---> Uncertain transactions <---
---> Active tables <---

Process <0.263.0> is doing a foldl over a small table and process
<0.281.0> is trying to write to it.

How do I get out of this?

It is RB1403.

Gordon



More information about the erlang-questions mailing list