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] NPE in BatchConditionQuery.sameQueryExceptKeyIN() #1775

Closed
1 task done
javeme opened this issue Mar 7, 2022 · 0 comments · Fixed by #1801
Closed
1 task done

[Bug] NPE in BatchConditionQuery.sameQueryExceptKeyIN() #1775

javeme opened this issue Mar 7, 2022 · 0 comments · Fixed by #1801
Labels
bug Something isn't working

Comments

@javeme
Copy link
Contributor

javeme commented Mar 7, 2022

Bug Type (问题类型)

gremlin (结果不合预期)

Before submit

  • 我已经确认现有的 IssuesFAQ 中没有相同 / 重复问题

Environment (环境信息)

  • Server Version: v0.12.0
  • Backend: MySQL

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

error log:

2022-03-01 03:24:15 [gremlin-server-exec-1] [WARN] o.a.t.g.s.h.HttpGremlinEndpointHandler - Invalid request - responding with 500 Internal Server Error and Error encountered evaluating script: g.V(563198940518809600,563200680815230976).bothE().dedup().limit(500)
java.lang.NullPointerException: null
    at com.baidu.hugegraph.backend.query.BatchConditionQuery.sameQueryExceptKeyIN(BatchConditionQuery.java:78) ~[hugegraph-core-0.12.0.jar:0.12.0.0]
    at com.baidu.hugegraph.backend.query.BatchConditionQuery.mergeToIN(BatchConditionQuery.java:58) ~[hugegraph-core-0.12.0.jar:0.12.0.0]
    at com.baidu.hugegraph.traversal.optimize.HugeVertexStepByBatch.edges(HugeVertexStepByBatch.java:134) ~[hugegraph-core-0.12.0.jar:0.12.0.0]
    at com.baidu.hugegraph.traversal.optimize.HugeVertexStepByBatch.flatMap(HugeVertexStepByBatch.java:109) ~[hugegraph-core-0.12.0.jar:0.12.0.0]
    at com.baidu.hugegraph.iterator.BatchMapperIterator.fetch(BatchMapperIterator.java:62) ~[hugegraph-common-2.0.1.jar:2.0.1.0]
    at com.baidu.hugegraph.iterator.WrappedIterator.hasNext(WrappedIterator.java:40) ~[hugegraph-common-2.0.1.jar:2.0.1.0]
    at com.baidu.hugegraph.traversal.optimize.HugeVertexStepByBatch.processNextStart(HugeVertexStepByBatch.java:65) ~[hugegraph-core-0.12.0.jar:0.12.0.0]
    at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:143) ~[gremlin-core-3.4.3.jar:3.4.3]
    at org.apache.tinkerpop.gremlin.process.traversal.step.util.ExpandableStepIterator.next(ExpandableStepIterator.java:50) ~[gremlin-core-3.4.3.jar:3.4.3]
    at org.apache.tinkerpop.gremlin.process.traversal.step.filter.FilterStep.processNextStart(FilterStep.java:37) ~[gremlin-core-3.4.3.jar:3.4.3]
    at org.apache.tinkerpop.gremlin.process.traversal.step.filter.DedupGlobalStep.processNextStart(DedupGlobalStep.java:105) ~[gremlin-core-3.4.3.jar:3.4.3]
    at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:143) ~[gremlin-core-3.4.3.jar:3.4.3]
    at org.apache.tinkerpop.gremlin.process.traversal.step.util.ExpandableStepIterator.next(ExpandableStepIterator.java:50) ~[gremlin-core-3.4.3.jar:3.4.3]
    at org.apache.tinkerpop.gremlin.process.traversal.step.filter.FilterStep.processNextStart(FilterStep.java:37) ~[gremlin-core-3.4.3.jar:3.4.3]
    at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:143) ~[gremlin-core-3.4.3.jar:3.4.3]
    at org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal.hasNext(DefaultTraversal.java:197) ~[gremlin-core-3.4.3.jar:3.4.3]
    at org.apache.tinkerpop.gremlin.util.iterator.IteratorUtils.fill(IteratorUtils.java:62) ~[gremlin-core-3.4.3.jar:3.4.3]
    at org.apache.tinkerpop.gremlin.util.iterator.IteratorUtils.list(IteratorUtils.java:85) ~[gremlin-core-3.4.3.jar:3.4.3]
    at org.apache.tinkerpop.gremlin.util.iterator.IteratorUtils.asList(IteratorUtils.java:382) ~[gremlin-core-3.4.3.jar:3.4.3]
    at org.apache.tinkerpop.gremlin.server.handler.HttpGremlinEndpointHandler.lambda$channelRead$1(HttpGremlinEndpointHandler.java:245) ~[gremlin-server-3.4.3.jar:3.4.3]
    at org.apache.tinkerpop.gremlin.util.function.FunctionUtils.lambda$wrapFunction$0(FunctionUtils.java:36) ~[gremlin-core-3.4.3.jar:3.4.3]
    at org.apache.tinkerpop.gremlin.groovy.engine.GremlinExecutor.lambda$eval$0(GremlinExecutor.java:272) ~[gremlin-groovy-3.4.3.jar:3.4.3]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_312]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_312]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_312]
    at com.baidu.hugegraph.auth.HugeGraphAuthProxy$ContextTask.run(HugeGraphAuthProxy.java:1748) [hugegraph-api-0.12.0.jar:0.67.0.0]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_312]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_312]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_312]

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

No response

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

No response

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.

1 participant