-
Notifications
You must be signed in to change notification settings - Fork 527
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
feat(store): integrate store-grpc
&store-common
&store-client
#2476
Conversation
store-grpc
, store-common
, store-client
into hugegraphstore-grpc
, store-common
, store-client
into hugegraph
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM~
|
||
package org.apache.hugegraph.store; | ||
|
||
public interface HgTkvEntry { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this name is a bit hard to understand, to be improved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we will fix it in the next code style related PR
hugegraph-store/hg-store-client/src/main/java/org/apache/hugegraph/store/HgTokvEntry.java
Show resolved
Hide resolved
/** | ||
* created on 2021/10/26 | ||
*/ | ||
public class HgPrivate { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this name is a bit hard to understand, to be improved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto, and this class seems to be useless, we will consider to remove it in futhur PR
...h-store/hg-store-client/src/main/java/org/apache/hugegraph/store/client/HgNodePartition.java
Show resolved
Hide resolved
...h-store/hg-store-client/src/main/java/org/apache/hugegraph/store/client/HgNodePartition.java
Show resolved
Hide resolved
rpc Table(TableReq) returns (FeedbackRes){}; | ||
rpc Graph(GraphReq) returns (FeedbackRes){}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Table/Graph looks a little strange, where are these two interfaces used , and what content do they return?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are mainly used in org.apache.hugegraph.store.node.grpc.HgStoreNodeService
(the related migration has not been completed yet, and store-node
will be migrated after the migration of this pr, store-core
and store-rocksdb
).
These two interfaces mainly define the CRUD operations related to table and graph. They will return true or false depending on whether these operations have failed or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: fix comments later
merge directly into the master branch after #2498... |
The base branch was changed.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2476 +/- ##
============================================
- Coverage 65.64% 58.83% -6.81%
Complexity 827 827
============================================
Files 518 579 +61
Lines 42987 46232 +3245
Branches 5976 6275 +299
============================================
- Hits 28218 27202 -1016
- Misses 11957 16275 +4318
+ Partials 2812 2755 -57 ☔ View full report in Codecov by Sentry. |
fix: maven rat plugin exist partial failure
store-grpc
, store-common
, store-client
into hugegraphstore-grpc
&store-common
&store-client
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll enhance some TODOs later (merge it first)
subtask of #2265, this PR mainly introduce the store-client module
During the code review, I found the following issues:
HgStoreClient
can hold multipleHgStoreSession
to maintain multiple connections, but now it only holds one.MultiNodeSessionFactory
doesn't consider the case of multiple instances.HgSessionManager
now is constructed by SPI, but it seems to have only one implementation class and thus does not require SPI?NodeTxSessionProxy.clean()
only uses the first node's cleaning result to determine whether the overall failure occurs. If subsequent nodes fail, we will not be able to detect it.getHeader()
methodFor the store-client submodule, its structure can be seen in detailed docs.
Note: code style including comments will be handled uniformly in future related PRs