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

rings 与rays接口查询报错 #250

Closed
fisherinbox opened this issue Nov 30, 2018 · 4 comments · Fixed by #252
Closed

rings 与rays接口查询报错 #250

fisherinbox opened this issue Nov 30, 2018 · 4 comments · Fixed by #252
Labels
bug Something isn't working
Milestone

Comments

@fisherinbox
Copy link

Expected behavior 期望表现

比如这种查询 http://localhost:8080/graphs/gods_relation_2/traversers/rings?source="1:pluto"&direction=OUT&max_depth=5

Actual behavior 实际表现

{
"exception": "class java.lang.IllegalArgumentException",
"message": "Paths max depth must be > 0, but got '0'",
"cause": ""
}

Steps to reproduce the problem 复现步骤

  1. {step 1}
  2. {step 2}
  3. {step 3}

Status of loaded data 数据状态

Vertex/Edge summary 数据量

  • loaded vertices amount: {like 10 million}
  • loaded edges amount: {like 20 million}
  • loaded time: {like 200s}

Vertex/Edge example 数据示例

{type something here...}

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

{type something here...}

Specifications of environment 环境信息

  • hugegraph version: {like v0.7.4}
  • operating system: {like centos 7.4, 32 CPUs, 64G RAM}
  • hugegraph backend: {like cassandra 3.10, cluster with 20 nodes, 3 x 1TB HDD disk each node}
@zhoney
Copy link
Contributor

zhoney commented Nov 30, 2018

@fisherinbox rings和rays的深度参数是depth,不是max_depth。参见:https://hugegraph.github.io/hugegraph-doc/clients/restful-api/traverser.html

image

image

@javeme
Copy link
Contributor

javeme commented Nov 30, 2018

@fisherinbox 可能有些不一致的地方,接下来会统一一下这些参数的命名。

@fisherinbox
Copy link
Author

@javeme 那例子url里面写错啊,建议尽快改一下
image

zhoney added a commit that referenced this issue Nov 30, 2018
fixed: #250

Change-Id: I0b429c00032c0cdf80090b8350be90f6f2b3f74b
@zhoney
Copy link
Contributor

zhoney commented Dec 3, 2018

@fisherinbox 已更新,参见:

https://hugegraph.github.io/hugegraph-doc/clients/restful-api/traverser.html

截图如下:

image

image

下一版本会统一命名,多谢您的反馈!

zhoney added a commit that referenced this issue Dec 17, 2018
fixed: #250

Change-Id: I0b429c00032c0cdf80090b8350be90f6f2b3f74b
Linary pushed a commit that referenced this issue Dec 17, 2018
fixed: #250

Change-Id: I0b429c00032c0cdf80090b8350be90f6f2b3f74b
@javeme javeme added this to the 0.9 milestone Apr 13, 2019
@javeme javeme added the bug Something isn't working label Apr 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants