nebula-explorer 子图查询页面卡死

子图查询筛选条件


点击图探索之后一直处于加载状态

后面发现自己插入的数据里面有悬挂边,解决之后可以正常查询。不过不知道是什么引起的界面一直加载
控制台抓包如下

从上到下的响应体依次是:
{“code”:0,“data”:{“headers”:[“vertices_”,“edges_”],“tables”:[{“edgesParsedList":[{“dstID”:“15”,“edgeName”:“visit”,“properties”:{},“rank”:0,“srcID”:“10”,“type”:“edge”},{“dstID”:“15”,“edgeName”:“attack”,“properties”:{},“rank”:0,“srcID”:“10”,“type”:“edge”}],“verticesParsedList":[{“properties”:{},“tags”:[],“type”:“vertex”,“vid”:“10”}],"edges”:“[[:visit "10"-\u003e"15" @0 {}], [:attack "10"-\u003e"15" @0 {}]]”,"vertices”:“[("10")]”},{“verticesParsedList":[{“properties”:{},“tags”:[],“type”:“vertex”,“vid”:“15”}],"edges”:“”,“vertices_”:“[("15")]”}],“timeCost”:1543,“localParams”:null},“message”:“Success”}

{“code”:0,“data”:{“headers”:,“tables”:,“timeCost”:729,“localParams”:null},“message”:“Success”}

{“code”:0,“data”:{“headers”:[“edge_”],“tables”:[{“edgesParsedList":[{“dstID”:“15”,“edgeName”:“visit”,“properties”:{“proto”:“TCP”,“timestamp”:0},“rank”:0,“srcID”:“10”,“type”:“edge”}],"edge”:“[:visit "10"-\u003e"15" @0 {proto: "TCP", timestamp: 0}]”}],“timeCost”:608,“localParams”:null},“message”:“Success”}

{“code”:0,“data”:{“headers”:[“edge_”],“tables”:[{“edgesParsedList":[{“dstID”:“15”,“edgeName”:“attack”,“properties”:{“app_proto”:“”,“attacker_port”:0,“name”:“”,“phase”:“”,“proto”:“”,“result”:“”,“severity”:“”,“tag”:“”,“timestamp”:1662918202281,“tool”:“”,“victim_port”:0},“rank”:0,“srcID”:“10”,“type”:“edge”}],"edge”:“[:attack "10"-\u003e"15" @0 {app_proto: "", attacker_port: 0, name: "", phase: "", proto: "", result: "", severity: "", tag: "", timestamp: 1662918202281, tool: "", victim_port: 0}]”}],“timeCost”:560,“localParams”:null},“message”:“Success”}

Explorer 版本号多少

nebula-explorer-3.1.2.x86_64
nebula版本3.2.0

方便把控制台和payload截下图吗
image

从上到下依次是
{“gql”:“GET SUBGRAPH 1 STEPS FROM “10” BOTH attack, visit YIELD VERTICES AS vertices_, EDGES AS edges_”}

{“gql”:“MATCH (n) WHERE id(n) IN [“10”, “15”] RETURN n”}

{“gql”:“fetch prop on visit “10”->“15”@0 YIELD edge as edge_”}

{“gql”:“fetch prop on attack “10”->“15”@0 YIELD edge as edge_”}

方便先打开控制台进行操作 截下图吗

原因:插入悬挂边 两个点都不存在于数据库 进行子图查询会发生报错

求问下是只要有悬挂边存在子图查询就会报错吗

只有两端的点都不存在的时候才会出现该问题 可以先通过插点的方式规避该问题 具体语句:insert vertex values “15”: ()

2 个赞

好的,感谢,希望能尽快修复 :eyes:

此话题已在最后回复的 30 天后被自动关闭。不再允许新回复。