neo4j constraint deleted node

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 01:33:02

问题


I have an issue where a constraint exception is thrown on a deleted node.

The cypher statement "match (n) where ID(n)=272 return ID(n),n" returns 0 rows, but when I try to create a new record that previously had a constrained value, the exception below) is still throw.

FYI, the constraint is on a property containing a String[] - maybe constraint uniqueness is broken with arrays?

Working with NEO4J 2.0.0M06 using the Java API (OpenJDK 7) on Ubuntu 12.04 via the nodejs/java npm (v sweet combo:) )

Temporary workaround: drop the constraint and re-create it (all worked from then on).

Is there a tool/schema command to force Neo to check integrity?

Caused by: org.neo4j.kernel.impl.api.constraints.UniqueConstraintViolationKernelException: Node 272 already exists with label 1 and property 4=[Ljava.lang.String;@3e4cf524
    at org.neo4j.kernel.api.operations.ConstraintEnforcingEntityOperations.validateNoExistingNodeWithLabelAndProperty(ConstraintEnforcingEntityOperations.java:105)
    at org.neo4j.kernel.api.operations.ConstraintEnforcingEntityOperations.nodeSetProperty(ConstraintEnforcingEntityOperations.java:85)
    at org.neo4j.kernel.impl.api.LockingStatementOperations.nodeSetProperty(LockingStatementOperations.java:234)
    at org.neo4j.kernel.api.OperationsFacade.nodeSetProperty(OperationsFacade.java:462)
    at org.neo4j.kernel.impl.core.NodeProxy.setProperty(NodeProxy.java:214)
    ... 5 more

来源:https://stackoverflow.com/questions/19771577/neo4j-constraint-deleted-node

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!