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

[Bug] hit white-screen when id value is same but id type are number and string (fe throws exception) #341

Open
1 task done
imbajin opened this issue Jan 6, 2022 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@imbajin
Copy link
Contributor

imbajin commented Jan 6, 2022

Bug Type (问题类型)

dashboard render (前端渲染问题)

Before submit

Environment (环境信息)

  • Server Version: v0.12
  • Hubble Version: v1.6
  • Data Size: 100 vertices, 100 edges

Expected & Actual behavior (期望与实际表现)

当出现顶点 id 同时有数字和字符串, 且数字 id 的值和字符串id 转数字值相同时,hubble 可能认为二者相同, 从而出现重复 id 报错(如下图)

37615fae444b7c54a9d41951a974f85a

此时前端对应出现白屏, 且抛出异常, 后端没有异常日志:
005f318651cca3bb3fa099106dc7c6db

具体代码:
90a9579b160fb0d899b56687f7eea5c7

Vertex/Edge example (问题点 / 边数据举例)

No response

Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

// 直接 hubble 内执行下列语句就能导入复现点边
graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().vertexLabel('folk').properties('name').useCustomizeNumberId().create();graph.schema().edgeLabel('next').sourceLabel('folk').targetLabel('folk').properties('name').create(); g.addV('folk').property(id,1).property('name','A').as('a').addV('folk').property(id,2).property('name','B').as('b').addV('folk').property(id,3).property('name','C').as('c').addV('folk').property(id,4).property('name','D').as('d').addV('folk').property(id,5).property('name','E').as('e').addV('folk').property(id,6).property('name','F').as('f').addE('next').from('a').to('b').property('name','ab').addE('next').from('b').to('c').property('name','bc').addE('next').from('b').to('d').property('name','bd').addE('next').from('c').to('d').property('name','cd').addE('next').from('c').to('e').property('name','ce').addE('next').from('d').to('e').property('name','de').addE('next').from('e').to('f').property('name','ef').addE('next').from('f').to('d').property('name','fd');graph.schema().vertexLabel('str').properties('name').useCustomizeStringId().create();g.addV('str').property(id,"1").property('name','A');
@imbajin imbajin added bug Something isn't working help wanted Extra attention is needed labels Jan 6, 2022
@imbajin imbajin changed the title [Bug] hit white-screen when property value is same, the fe throws exception [Bug] hit white-screen when id value is same when exist number and string type (fe throws exception) Jan 6, 2022
@javeme javeme changed the title [Bug] hit white-screen when id value is same when exist number and string type (fe throws exception) [Bug] hit white-screen when id value is same but id type are number and string (fe throws exception) Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant