Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Deadlock exception when deleting relationships concurrently
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
brian  
View profile  
 More options Oct 8 2012, 11:02 am
From: brian <blevine...@gmail.com>
Date: Mon, 8 Oct 2012 08:02:28 -0700 (PDT)
Local: Mon, Oct 8 2012 11:02 am
Subject: Deadlock exception when deleting relationships concurrently

All,

I am using the node-neo4j library on Node.js against Neo4j 1.8GA. The
node-neo4j library provides a Node class with a delete method that
optionally deletes all relationships on a Node prior to deleting the Node.
If the Node has multiple relationships,   the library gets all
relationships on the Node and deletes them *in parallel*. If I'm reading
the code right, the request to retrieve the relationships and the request
to delete the retrieved relationships are all happening concurrently. In my
scenario, I have Node A with relationships to Nodes B, C, D.  When I call
delete on Node A, I get a DeadlockDetectedException (partial stack trace
included below).   I'm not clear on what resource is being locked in this
scenario. The Exception details seem very complete however I'm not quite
sure how to interpret them.

Thanks for your help.

-brian

Partial stack trace:

Details: 'Transaction(0)[STATUS_ACTIVE,Resources=1] can't wait on resource
RWLock[Relationship[27692]] since =>
Transaction(0)[STATUS_ACTIVE,Resources=1] <-[:HELD_BY]- RWLock[Node[2241]]
<-[:WAITING_FOR]- Transaction(0)[STATUS_ACTIVE,Resources=1] <-[:HELD_BY]-
RWLock[Relationship[27692]]'.
at
org.neo4j.kernel.impl.transaction.RagManager.checkWaitOnRecursive(RagManage r.java:218)
at
org.neo4j.kernel.impl.transaction.RagManager.checkWaitOnRecursive(RagManage r.java:246)
at
org.neo4j.kernel.impl.transaction.RagManager.checkWaitOn(RagManager.java:18 5)
at
org.neo4j.kernel.impl.transaction.RWLock.acquireWriteLock(RWLock.java:349)
at
org.neo4j.kernel.impl.transaction.LockManager.getWriteLock(LockManager.java :164)
at
org.neo4j.kernel.impl.transaction.LockManager.getWriteLock(LockManager.java :130)
at
org.neo4j.kernel.impl.nioneo.xa.WriteTransaction.getWriteLock(WriteTransact ion.java:870)
at
org.neo4j.kernel.impl.nioneo.xa.WriteTransaction.disconnectRelationship(Wri teTransaction.java:809)
at
org.neo4j.kernel.impl.nioneo.xa.WriteTransaction.relDelete(WriteTransaction .java:689)
at
org.neo4j.kernel.impl.persistence.PersistenceManager.relDelete(PersistenceM anager.java:166)
at
org.neo4j.kernel.impl.core.NodeManager.deleteRelationship(NodeManager.java: 989)
at
org.neo4j.kernel.impl.core.RelationshipImpl.delete(RelationshipImpl.java:14 5)
at
org.neo4j.kernel.impl.core.RelationshipProxy.delete(RelationshipProxy.java: 62)
at
org.neo4j.server.rest.web.DatabaseActions.deleteRelationship(DatabaseAction s.java:609)
at
org.neo4j.server.rest.web.RestfulGraphDatabase.deleteRelationship(RestfulGr aphDatabase.java:446)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 9)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:25)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
brian  
View profile  
 More options Oct 8 2012, 11:07 am
From: brian <blevine...@gmail.com>
Date: Mon, 8 Oct 2012 08:07:48 -0700 (PDT)
Local: Mon, Oct 8 2012 11:07 am
Subject: Re: Deadlock exception when deleting relationships concurrently

Please ignore.  I see that this issue has already been raised
here: https://groups.google.com/d/topic/neo4j/TinPz2Uv1rs/discussion

-brian


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »