【发布时间】:2021-08-04 05:41:36
【问题描述】:
我正在尝试创建一个用户顶点和一个城市顶点(如果它们在图中尚不存在),然后在它们两者之间添加一条边。当我在同一次遍历中执行命令时,我从 Neptune 遇到了这个 InternalFailureException。
g.V("user12345").
fold().
coalesce(unfold(),addV("user").property(id, "user-12345")).as('user').
V("city-ATL").
fold().
coalesce(unfold(), addV("city").property(id, "city-ATL")).as("city").
addE("lives_in").
from("user").
to("city")
{"code":"InternalFailureException","detailedMessage":"An unexpected error has occurred in Neptune.","requestId":"xxx"}
(请注意,在上例中,user-12345 和 city-ATL 都不存在于图中)。
但是,当我在执行命令之前创建城市时,它工作得很好:
gremlin> g.V("city-ATL").
fold().
coalesce(unfold(),
addV("city").property(id, "city-ATL"))
==>v[city-ATL]
gremlin> g.V("user-12345").
fold().
coalesce(unfold(),addV("user").property(id, "user-12345")).as('user').
V("city-ATL").
fold().
coalesce(unfold(), addV("city").property(id, "city-ATL")).as("city").
addE("lives_in").from("user").to("city")
==>e[1abd87d6-6f54-9e42-ae0a-47401c9dcfe6][user-12345-lives_in-city-ATL]
我正在尝试构建一个可以同时完成它们的遍历。有谁知道为什么海王星会在城市不存在的情况下抛出这个InternalFailureException?
【问题讨论】: