feat(core): support batch+parallel edges traverse#2312
Merged
imbajin merged 11 commits intoapache:masterfrom Oct 24, 2023
Merged
feat(core): support batch+parallel edges traverse#2312imbajin merged 11 commits intoapache:masterfrom
imbajin merged 11 commits intoapache:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2312 +/- ##
============================================
- Coverage 68.26% 68.04% -0.23%
+ Complexity 989 981 -8
============================================
Files 500 501 +1
Lines 41516 41662 +146
Branches 5786 5796 +10
============================================
+ Hits 28342 28350 +8
- Misses 10415 10556 +141
+ Partials 2759 2756 -3
... and 17 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
javeme
reviewed
Sep 15, 2023
hugegraph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/OltpTraverser.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/OltpTraverser.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/OltpTraverser.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/OltpTraverser.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/OltpTraverser.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/OltpTraverser.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/OltpTraverser.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/OltpTraverser.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/OltpTraverser.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/backend/query/EdgesQueryIterator.java
Show resolved
Hide resolved
javeme
reviewed
Sep 16, 2023
hugegraph-core/src/main/java/org/apache/hugegraph/task/TaskManager.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/task/TaskManager.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/OltpTraverser.java
Outdated
Show resolved
Hide resolved
| public static final int THREADS = 4 + CoreOptions.CPUS / 4; | ||
| public static final int QUEUE_WORKER_SIZE = 1000; | ||
| public static final long CONSUMER_WAKE_PERIOD = 1; | ||
| private static final Object QUEUE_END = new VWrapper(null); |
Contributor
There was a problem hiding this comment.
can we remove VWrapper class and just use new Object() instead
Contributor
Author
Contributor
There was a problem hiding this comment.
get it, can we remove VWrapper class and keep BlockingQueue<V> queue, then try to define V QUEUE_END = (V) new Object();
hugegraph-core/src/main/java/org/apache/hugegraph/util/Consumers.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/OltpTraverser.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/OltpTraverser.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/OltpTraverser.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/OltpTraverser.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/util/Consumers.java
Outdated
Show resolved
Hide resolved
Member
|
could use ldbc data to perf it (u could the instruction in ldbc-feishu-doc) |
javeme
reviewed
Sep 17, 2023
hugegraph-rocksdb/src/main/java/org/apache/hugegraph/backend/store/rocksdb/RocksDBStore.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/task/TaskManager.java
Outdated
Show resolved
Hide resolved
| public static final int THREADS = 4 + CoreOptions.CPUS / 4; | ||
| public static final int QUEUE_WORKER_SIZE = 1000; | ||
| public static final long CONSUMER_WAKE_PERIOD = 1; | ||
| private static final Object QUEUE_END = new VWrapper(null); |
Contributor
There was a problem hiding this comment.
get it, can we remove VWrapper class and keep BlockingQueue<V> queue, then try to define V QUEUE_END = (V) new Object();
hugegraph-core/src/main/java/org/apache/hugegraph/backend/query/EdgesQueryIterator.java
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/HugeTraverser.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/HugeTraverser.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/OltpTraverser.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/OltpTraverser.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/util/Consumers.java
Outdated
Show resolved
Hide resolved
javeme
reviewed
Sep 20, 2023
hugegraph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/HugeTraverser.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/OltpTraverser.java
Outdated
Show resolved
Hide resolved
imbajin
approved these changes
Oct 24, 2023
VGalaxies
pushed a commit
to VGalaxies/incubator-hugegraph
that referenced
this pull request
Nov 10, 2023
- Enhance Consumers.java, supporting ExceptionHandle and `Future` to handle InterruptedException when awaiting - Add Nested Iterator Edge and support batch execution - Support batch execution & thread parallel in KoutTraverser and Kneighbor
imbajin
pushed a commit
that referenced
this pull request
Nov 10, 2023
- Enhance Consumers.java, supporting ExceptionHandle and `Future` to handle InterruptedException when awaiting - Add Nested Iterator Edge and support batch execution - Support batch execution & thread parallel in KoutTraverser and Kneighbor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Purpose of the PR
Main Changes
Futureto handle InterruptedException when awaitingVerifying these changes
Initialize the Graph
Add LOG in consumer
Postman Test & Check Log
Does this PR potentially affect the following parts?
Documentation Status
Doc - TODODoc - DoneDoc - No Need