[erlang-questions] Mnesia Deadlock

Dan Gudmundsson dangud@REDACTED
Tue Jun 12 08:29:48 CEST 2012


That is not a deadlock,

You have one process holding the locks <0.263.0>
and one waiting to get a table lock <0.281.0>

Whenever 263 is finished 281 will get the lock.

/Dan

On Mon, Jun 11, 2012 at 9:28 PM, Gordon Guthrie <gordon@REDACTED> wrote:
> 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
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list