Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grahd crash when the tag pointed to by the edge data does not exist #4697

Closed
abbydev opened this issue Oct 9, 2022 · 2 comments
Closed

Grahd crash when the tag pointed to by the edge data does not exist #4697

abbydev opened this issue Oct 9, 2022 · 2 comments
Assignees
Labels
affects/none PR/issue: this bug affects none version. need info Solution: need more information (ex. can't reproduce) process/done Process of bug severity/major Severity of bug type/bug Type: something is unexpected

Comments

@abbydev
Copy link

abbydev commented Oct 9, 2022

1,环境描述
nebula 版本:3.2.0
部署方式:单机
安装方式: RPM
是否为线上版本:N
服务器:CentOs-7.9、4cpu cores、16g

2,问题描述
使用match查询时,当存在某一条边数据的结束顶点的tag已被删除(属于脏数据)情况下,graphd crash

3,必现流程

  • 1)创建tag(t1,t2,t3),创建edgeType(e1,e2)
  • 2)添加数据t1,t2,t3 和 e1,e2,其中e2中有边数据指向t3
  • 3)删除t3
  • 4)match查询导致graphd crash,以下是我的GQL
MATCH p=(v:t1)-[e:e1|e2*0..1]-(v2)
WHERE id(v) IN ['t1/-1756172977717531760']
AND ALL ( n IN nodes(p) 
  WHERE (
  head(labels(n)) IN ['t1','t2']
) 
)
AND ALL(r IN e 
  WHERE 1==1
) 
RETURN [n IN nodes(p) | 
  {
      id_:id(n),
      label_:properties(n).entity_,
      schema_:head(tags(n)),
      readable_:(n.entity_reader_ IS NULL 
          OR n.entity_reader_ == ''
      )
  }
] AS vertexList,
[r IN relationships(p) | 
  {
      id_:properties(r).id_,
      schema_:type(r),
      from_:properties(r).from_,
      to_:properties(r).to_
  }
] AS edgeList
LIMIT 2000;
@abbydev abbydev added the type/bug Type: something is unexpected label Oct 9, 2022
@Sophie-Xie Sophie-Xie added this to the v3.3.0 milestone Oct 9, 2022
@jievince
Copy link
Contributor

1)创建tag(t1,t2,t3),创建edgeType(e1,e2)
2)添加数据t1,t2,t3 和 e1,e2,其中e2中有边数据指向t3
3)删除t3
4)match查询导致graphd crash,以下是我的GQL

这部分可以提供能直接运行的语句吗?
我按你这里写的创建的schema没复现出来.

@Sophie-Xie Sophie-Xie added the need info Solution: need more information (ex. can't reproduce) label Oct 18, 2022
@Sophie-Xie Sophie-Xie removed this from the v3.3.0 milestone Oct 26, 2022
@jinyingsunny jinyingsunny added the severity/major Severity of bug label Nov 10, 2022
@HarrisChu HarrisChu added the affects/none PR/issue: this bug affects none version. label Dec 1, 2022
@Sophie-Xie
Copy link
Contributor

Closed it first, if you have some new info, you can open the issue again.

@github-actions github-actions bot added the process/fixed Process of bug label Dec 2, 2022
@HarrisChu HarrisChu added the process/done Process of bug label Dec 2, 2022
@github-actions github-actions bot removed the process/fixed Process of bug label Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/none PR/issue: this bug affects none version. need info Solution: need more information (ex. can't reproduce) process/done Process of bug severity/major Severity of bug type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

5 participants