Skip to content

[查询异常]post请求进行gremlin 查询异常 (rocksdb存储后端) #1331

@DoubleBabylol

Description

@DoubleBabylol

Expected behavior 期望表现

使用get和post,查询同一条gremlin,结果应该一致

Actual behavior 实际表现

使用post请求查询带path()的gremlin,返回结果异常,均为{"empty":false,"simple":true}

Steps to reproduce the problem 复现步骤

1. post请求查询body:

//api
http://ip:8080/graphs/xgraph/jobs/gremlin
//body
 {"gremlin": "g.V().hasLabel('file', 'network').has('uid', within(180550774,2653739512)).aggregate('x').in('drop', 'visit').path().by('uid')", "bindings": {}, "language": "gremlin-groovy"}

通过taskid查询结果,关注返回值task_result,均为{"empty":false,"simple":true}
image

2. 通过get请求查询同一条gremlin:

//api
http://ip:8080/gremlin?gremlin=xgraph.traversal().V().hasLabel('file').has('uid', within(180550774,2653739512)).in().path()

结果
image

3.使用其他gremlin语句查询path():

get:

image

post查询同一条gremlin语句,仍为异常结果
image

Specifications of environment 环境信息

  • hugegraph version: {0.11}
  • hugegraph backend: {rocksdb}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions