-
Notifications
You must be signed in to change notification settings - Fork 521
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
chore(pd-store-dev): integrate pd-grpc
, pd-common
, pd-client
into hugegraph
#2460
Conversation
…-pd/hg-pd-client/ pom.xml hugegraph-pd/pom.xml
pd-grpc
, pd-common
, pd-client
hugegraphpd-grpc
, pd-common
, pd-client
into hugegraph
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## pd-store-dev #2460 +/- ##
==================================================
- Coverage 63.80% 63.23% -0.57%
+ Complexity 829 827 -2
==================================================
Files 511 518 +7
Lines 42622 42959 +337
Branches 5947 5981 +34
==================================================
- Hits 27193 27164 -29
- Misses 12679 13040 +361
- Partials 2750 2755 +5 ☔ View full report in Codecov by Sentry. |
5ff9c96
to
a5fd93f
Compare
…on from 1.39.0 to 1.53.0" This reverts commit e4cd901.
|
||
public String nextHost() { | ||
String host = hostList.poll(); | ||
hostList.offer(host); //移到尾部 |
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.
Translate comments into English.
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.
Translate comments into English.
We will do it together in another PR (later), reduce (style)time cost in each PR (So as others)
hugegraph-pd/hg-pd-client/src/main/java/org/apache/hugegraph/pd/client/ClientCache.java
Show resolved
Hide resolved
hugegraph-pd/hg-pd-client/src/main/java/org/apache/hugegraph/pd/client/ClientCache.java
Show resolved
Hide resolved
hugegraph-pd/hg-pd-client/src/main/java/org/apache/hugegraph/pd/client/DiscoveryClient.java
Show resolved
Hide resolved
hugegraph-pd/hg-pd-client/src/main/java/org/apache/hugegraph/pd/client/DiscoveryClientImpl.java
Show resolved
Hide resolved
hugegraph-pd/hg-pd-client/src/main/java/org/apache/hugegraph/pd/client/PDClient.java
Show resolved
Hide resolved
hugegraph-pd/hg-pd-client/src/main/java/org/apache/hugegraph/pd/client/PDClient.java
Show resolved
Hide resolved
private volatile Map<String, GraphCache> caches = new ConcurrentHashMap<>(); | ||
|
||
public ClientCache(org.apache.hugegraph.pd.client.PDClient pdClient) { | ||
groups = new ConcurrentHashMap<>(); | ||
stores = new ConcurrentHashMap<>(); | ||
client = pdClient; | ||
} |
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.
Maybe we can consider to put the initialization of member variables all in the constructor for a cleaner code style. This can be fixed in the next style related PR. @VGalaxies
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.
Maybe we can consider to put the initialization of member variables all in the constructor for a cleaner code style. This can be fixed in the next style related PR. @VGalaxies
Yep, we could mark a TODO
first & enhance it with the v4.0 together
<!-- enable it by default in ARM Mac to handle the compilation problems:) --> | ||
<profile> |
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.
enhance the building way here
TODO: also clean it in other repos
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.
PS: Historical issues will be optimized over time:)
subtask of #2265
During the code review, I found the following issues:
PDClient.StubProxy
andAbstractClientStubProxy
.PDPulse
,PDPulseImpl
should inpulse
PDWatch
,PDWatchImpl
should inwatch
For the
pd-client
submodule, its structure is as follows:TODO: