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

fix NoSuchMethodError Relations() #1720

Merged
merged 1 commit into from
Dec 31, 2021
Merged

fix NoSuchMethodError Relations() #1720

merged 1 commit into from
Dec 31, 2021

Conversation

javeme
Copy link
Contributor

@javeme javeme commented Dec 31, 2021

Change-Id: I25b50a8d529d0292d700aaac0f63b4722a99160f

Change-Id: I25b50a8d529d0292d700aaac0f63b4722a99160f
@javeme
Copy link
Contributor Author

javeme commented Dec 31, 2021

The error occurs occasionally:

2021-12-31 17:27:58 [gremlin-server-exec-3] [WARN] o.a.t.g.s.h.HttpGremlinEndpointHandler - Invalid request - responding with 500 Internal Server Error and com.baidu.hugegraph.backend.query.ConditionQueryFlatten$Relations.<init>(Lcom/baidu/hugegraph/backend/query/ConditionQueryFlatten$Relations;)V
java.lang.NoSuchMethodError: com.baidu.hugegraph.backend.query.ConditionQueryFlatten$Relations.<init>(Lcom/baidu/hugegraph/backend/query/ConditionQueryFlatten$Relations;)V
    at com.baidu.hugegraph.backend.query.ConditionQueryFlatten.and(ConditionQueryFlatten.java:229) ~[classes/:?]
    at com.baidu.hugegraph.backend.query.ConditionQueryFlatten.flatten(ConditionQueryFlatten.java:78) ~[classes/:?]
    at com.baidu.hugegraph.backend.tx.GraphTransaction.optimizeQueries(GraphTransaction.java:1329) ~[classes/:?]
    at com.baidu.hugegraph.backend.tx.GraphTransaction.query(GraphTransaction.java:536) ~[classes/:?]
    at com.baidu.hugegraph.backend.tx.GraphTransaction.queryEdgesFromBackend(GraphTransaction.java:981) ~[classes/:?]
    at com.baidu.hugegraph.backend.cache.CachedGraphTransaction.queryEdgesFromBackend(CachedGraphTransaction.java:300) ~[classes/:?]
    at com.baidu.hugegraph.backend.tx.GraphTransaction.queryEdges(GraphTransaction.java:944) ~[classes/:?]
    at com.baidu.hugegraph.StandardHugeGraph.edges(StandardHugeGraph.java:670) ~[classes/:?]
    at com.baidu.hugegraph.auth.HugeGraphAuthProxy.edges(HugeGraphAuthProxy.java:488) ~[classes/:?]
    at com.baidu.hugegraph.traversal.optimize.HugeVertexStep.queryEdges(HugeVertexStep.java:118) ~[classes/:?]
    at com.baidu.hugegraph.traversal.optimize.HugeVertexStep.edges(HugeVertexStep.java:99) ~[classes/:?]
    at com.baidu.hugegraph.traversal.optimize.HugeVertexStep.flatMap(HugeVertexStep.java:78) ~[classes/:?]
    at org.apache.tinkerpop.gremlin.process.traversal.step.map.FlatMapStep.processNextStart(FlatMapStep.java:49) ~[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.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_111]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_111]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_111]
    at com.baidu.hugegraph.auth.HugeGraphAuthProxy$ContextTask.run(HugeGraphAuthProxy.java:1748) [classes/:?]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_111]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_111]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_111]

@codecov
Copy link

codecov bot commented Dec 31, 2021

Codecov Report

Merging #1720 (c34cd6c) into master (8fe485d) will increase coverage by 17.86%.
The diff coverage is 100.00%.

Impacted file tree graph

@@              Coverage Diff              @@
##             master    #1720       +/-   ##
=============================================
+ Coverage     49.03%   66.89%   +17.86%     
- Complexity     5332     7108     +1776     
=============================================
  Files           423      423               
  Lines         35596    35598        +2     
  Branches       4959     4959               
=============================================
+ Hits          17456    23815     +6359     
+ Misses        16204     9382     -6822     
- Partials       1936     2401      +465     
Impacted Files Coverage Δ
...hugegraph/backend/query/ConditionQueryFlatten.java 75.83% <100.00%> (+5.66%) ⬆️
...m/baidu/hugegraph/backend/tx/GraphTransaction.java 80.16% <0.00%> (+0.10%) ⬆️
...du/hugegraph/backend/tx/GraphIndexTransaction.java 83.72% <0.00%> (+0.21%) ⬆️
...n/java/com/baidu/hugegraph/structure/HugeEdge.java 76.23% <0.00%> (+0.44%) ⬆️
...ava/com/baidu/hugegraph/structure/HugeElement.java 71.81% <0.00%> (+0.45%) ⬆️
...om/baidu/hugegraph/task/StandardTaskScheduler.java 75.60% <0.00%> (+0.48%) ⬆️
...u/hugegraph/schema/builder/PropertyKeyBuilder.java 89.71% <0.00%> (+0.57%) ⬆️
...aidu/hugegraph/backend/tx/AbstractTransaction.java 75.00% <0.00%> (+0.59%) ⬆️
...n/java/com/baidu/hugegraph/schema/PropertyKey.java 76.97% <0.00%> (+0.71%) ⬆️
...om/baidu/hugegraph/backend/query/QueryResults.java 61.98% <0.00%> (+0.82%) ⬆️
... and 243 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8fe485d...c34cd6c. Read the comment docs.

@javeme javeme merged commit 132582a into master Dec 31, 2021
@javeme javeme deleted the no-relations-method branch December 31, 2021 12:07
javeme added a commit that referenced this pull request Jan 12, 2022
Change-Id: I25b50a8d529d0292d700aaac0f63b4722a99160f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants