首页 > 解决方案 > Orientdb-gremlin 中的多重关系问题

问题描述

让我们创建 3 个顶点(没有关系)[工作正常]

graph.addVertex(label, "Master", "title", "master")
graph.addVertex(label, "Test", "title", 'abc')
graph.addVertex(label, "Test", "title", 'xyz')

用 abc 链接 master [工作正常]

g.V().hasLabel("Master").addE("relation").to(g.V().has("Test","title",'abc'))

将主服务器与 xyz 链接 [失败]

g.V().hasLabel("Master").addE("relation").to(g.V().has("Test","title",'xyz'))

错误

Cannot UPDATE the record #59:3 because the version is not the latest. Probably you are updating an old record or it has been modified by another user (db=v2 your=v1)

标签: orientdbgremlingremlin-server

解决方案


发生此异常是因为您在多版本控制检查 (MVCC) 系统中运行,并且另一个线程/用户已更新您正在保存的记录。有关此主题的更多信息,请查看并发。

是这样吗?

如果是这样,您可以检查此链接

希望能帮助到你

问候


推荐阅读