[Neo4j] InvalidRecordException: Node record NodeRecord still has relationships
Christoph Klaaßen
klaassen.christoph at googlemail.com
Thu May 5 15:34:18 CEST 2011
Are you sure that you deleted all relations before you try to remove the node itself? Because the exception tells that you didn't. Maybe you should step through delete process to be sure.
Greetings
Chris
Am 05.05.2011 um 13:47 schrieb "Balazs E. Pataki" <pataki at dsd.sztaki.hu>:
> Hi,
>
> I have a complex database and I try to delete some parts of the graph
> using traversal. When deleting, I always delete all relationhips of a
> node, and then delete the node itself. At the end, however I get this
> exception:
>
> Caused by: javax.transaction.HeuristicRollbackException: Failed to
> commit, transaction rolledback --->
> org.neo4j.kernel.impl.nioneo.store.InvalidRecordException: Node record
> NodeRecord[28,false,2712731,107] still has relationships
> at org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:693)
> at org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:584)
> at
> org.neo4j.kernel.impl.transaction.TransactionImpl.commit(TransactionImpl.java:104)
> at org.neo4j.kernel.TopLevelTransaction.finish(TopLevelTransaction.java:85)
> ... 3 more
>
> Do you have any clue what causes this?
>
> I tried to do the same kind of deletion in smaller test cases (which are
> more or less contain same graphs as in the big database), but in the
> test cases I get no such exception: everything gets deleted as it should.
>
> Regards,
> ---
> balazs
> _______________________________________________
> Neo4j mailing list
> User at lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
More information about the User
mailing list