Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Comments

refact(rpc): merge rpc module into commons#84

Merged
javeme merged 9 commits intomasterfrom
merge-rpc
Dec 7, 2021
Merged

refact(rpc): merge rpc module into commons#84
javeme merged 9 commits intomasterfrom
merge-rpc

Conversation

@imbajin
Copy link
Member

@imbajin imbajin commented Nov 30, 2021

for apache need, after this pr, we will:

  • rename hugegraph-common --> hugegraph-commons
  • merge the hugegraph-rpc module into hugegraph-commons, and keep it independent (include commit log)
  • merge License, checkstyle, ci, etc..
  • add a new pom.xml & README in root dir
  • unify rpc & common version later (better to keep same)

Linary and others added 7 commits March 16, 2021 18:56
* add rpc framework based on sofa-rpc
* allowed to start server or client separately
* add destroy() method for rpc client
* complete the supplement of test cases
* remove sleep in destroy-server and improve comments of test block
* add fanout exception test case
* travis use oraclejdk8
* fix log4j config and remove test/resources from pom to avoid including log4j2.xml in tar

Co-authored-by: Jermy Li <lizhangmei@baidu.com>
Co-authored-by: xuliguov5 <xuliguo@baidu.com>
* add rpc.server_adaptive_port option
* use bolt v1.6.2 instead of v1.5.6 to get RemotingServer.port()
@imbajin imbajin requested a review from javeme November 30, 2021 08:31
1. root pom.xml, license, checkstyle, ci,
@codecov
Copy link

codecov bot commented Dec 2, 2021

Codecov Report

Merging #84 (6e2330d) into master (1d27452) will increase coverage by 4.09%.
The diff coverage is 93.12%.

❗ Current head 6e2330d differs from pull request most recent head ee08712. Consider uploading reports for the commit ee08712 to get more accurate results
Impacted file tree graph

@@             Coverage Diff              @@
##             master      #84      +/-   ##
============================================
+ Coverage     89.03%   93.12%   +4.09%     
+ Complexity      943       65     -878     
============================================
  Files            63        9      -54     
  Lines          2744      262    -2482     
  Branches        399       22     -377     
============================================
- Hits           2443      244    -2199     
+ Misses          154        8     -146     
+ Partials        147       10     -137     
Impacted Files Coverage Δ
...n/java/com/baidu/hugegraph/version/RpcVersion.java 50.00% <50.00%> (ø)
...ava/com/baidu/hugegraph/rpc/RpcClientProvider.java 90.47% <90.47%> (ø)
...ava/com/baidu/hugegraph/rpc/RpcConsumerConfig.java 91.48% <91.48%> (ø)
.../java/com/baidu/hugegraph/rpc/RpcCommonConfig.java 91.66% <91.66%> (ø)
...c/main/java/com/baidu/hugegraph/rpc/RpcServer.java 92.06% <92.06%> (ø)
...in/java/com/baidu/hugegraph/config/RpcOptions.java 97.22% <97.22%> (ø)
...ain/java/com/baidu/hugegraph/rpc/RpcException.java 100.00% <100.00%> (ø)
...ava/com/baidu/hugegraph/rpc/RpcProviderConfig.java 100.00% <100.00%> (ø)
...m/baidu/hugegraph/rpc/RpcServiceConfig4Client.java 100.00% <100.00%> (ø)
...ava/com/baidu/hugegraph/concurrent/AtomicLock.java
... and 62 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 1d27452...ee08712. Read the comment docs.

@imbajin
Copy link
Member Author

imbajin commented Dec 2, 2021

after review & CI pass, separate this pr into 2

javeme
javeme previously approved these changes Dec 2, 2021
Copy link
Contributor

@javeme javeme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGME

<developer>
<name>liningrui</name>
<email>liningrui@vip.qq.com</email>
</developer>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can add more developers

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's optional & maybe do it in a separate pr (if need)

javeme
javeme previously approved these changes Dec 3, 2021
@javeme javeme merged commit f5383d5 into master Dec 7, 2021
@javeme javeme deleted the merge-rpc branch December 7, 2021 08:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants