Note that there are some explanatory texts on larger screens.

plurals
  1. PONeo4j , Relationship deletion causing exception
    primarykey
    data
    text
    <p>I am facing strange problem in deleting relationship.</p> <p>I think it is some kind of deadlock occurring. Here is the code </p> <pre><code>Transaction txBegin = graphDb.beginTx(); try { for (Relationship r : GlobalGraphOperations.at(graphDb).getAllRelationships()) { for(String indexName : graphDb.index().relationshipIndexNames()) { graphDb.index().forRelationships(indexName).remove(r); } } r.delete(); // EXCEPTION HERE } </code></pre> <p>Here is the stack trace I got </p> <pre><code>Thread [16462692@qtp-14650787-39 - /db/data/ext/MyGraph/graphdb/deleteAll] (Suspended) waiting for: RWLock (id=90) Object.wait(long) line: not available [native method] RWLock(Object).wait() line: 503 RWLock.acquireWriteLock(Transaction) line: 341 LockManagerImpl.getWriteLock(Object, Transaction) line: 133 WritableTransactionState.acquireWriteLock(Object) line: 279 NodeManager.deleteRelationship(RelationshipImpl, TransactionState) line: 837 OldTxStateBridgeImpl.deleteRelationship(long) line: 150 TxStateImpl.relationshipDoDelete(long) line: 263 StateHandlingStatementOperations.relationshipDelete(Statement, long) line: 90 ConstraintEnforcingEntityWriteOperations.relationshipDelete(Statement, long) line: 143 LockingStatementOperations.relationshipDelete(Statement, long) line: 188 DataStatement.relationshipDelete(long) line: 62 RelationshipProxy.delete() line: 86 MyGraph.deleteAll(GraphDatabaseService) line: 188 NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method] </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload