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

[DUBBO-3137]: get rid of ConfigConstants, RpcConstatns, RemotingConstants #4138

Merged
merged 7 commits into from
May 28, 2019
Merged

[DUBBO-3137]: get rid of ConfigConstants, RpcConstatns, RemotingConstants #4138

merged 7 commits into from
May 28, 2019

Conversation

beiwei30
Copy link
Member

What is the purpose of the change

issue #3137: get rid of ConfigConstants, RpcConstatns, RemotingConstants

Brief changelog

XXXXX

Verifying this change

XXXXX

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a GITHUB_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GITHUB issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [Dubbo-XXX] Fix UnknownException when host config not exist #XXX. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
  • Run mvn clean install -DskipTests=false & mvn clean test-compile failsafe:integration-test to make sure unit-test and integration-test pass.
  • If this contribution is large, please follow the Software Donation Guide.

@codecov-io
Copy link

codecov-io commented May 26, 2019

Codecov Report

Merging #4138 into master will decrease coverage by 0.03%.
The diff coverage is 62.5%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #4138      +/-   ##
============================================
- Coverage     62.92%   62.88%   -0.04%     
+ Complexity      505      504       -1     
============================================
  Files           768      769       +1     
  Lines         33064    33060       -4     
  Branches       5220     5218       -2     
============================================
- Hits          20805    20791      -14     
- Misses         9859     9868       +9     
- Partials       2400     2401       +1
Impacted Files Coverage Δ Complexity Δ
.../apache/dubbo/qos/protocol/QosProtocolWrapper.java 69.23% <ø> (+5.12%) 0 <0> (ø) ⬇️
...main/java/org/apache/dubbo/remoting/Constants.java 100% <ø> (ø) 0 <0> (ø) ⬇️
...e/dubbo/remoting/transport/netty4/NettyServer.java 76.56% <ø> (ø) 0 <0> (ø) ⬇️
.../rpc/cluster/router/condition/ConditionRouter.java 68.05% <ø> (ø) 0 <0> (ø) ⬇️
...in/java/org/apache/dubbo/rpc/support/RpcUtils.java 60% <ø> (ø) 0 <0> (ø) ⬇️
...che/dubbo/registry/dubbo/DubboRegistryFactory.java 89.74% <ø> (ø) 6 <0> (ø) ⬇️
...dubbo/rpc/protocol/dubbo/CallbackServiceCodec.java 80.14% <ø> (ø) 0 <0> (ø) ⬇️
...org/apache/dubbo/rpc/protocol/rmi/RmiProtocol.java 60% <ø> (ø) 9 <0> (ø) ⬇️
...apache/dubbo/rpc/protocol/dubbo/DubboProtocol.java 67.3% <ø> (ø) 0 <0> (ø) ⬇️
...n/java/org/apache/dubbo/common/utils/UrlUtils.java 78.04% <ø> (+0.23%) 0 <0> (ø) ⬇️
... and 44 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 a8ca64c...159c567. Read the comment docs.

Copy link
Member

@CrazyHZM CrazyHZM left a comment

Choose a reason for hiding this comment

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

Please take a look at my comment.

@@ -209,10 +209,10 @@ public ChannelHandler getChannelHandler() {
public void reset(URL url) {
server.reset(url);
try {
int currHeartbeat = UrlUtils.getHeartbeat(getUrl());
int currIdleTimeout = UrlUtils.getIdleTimeout(getUrl());
int currHeartbeat = org.apache.dubbo.remoting.utils.UrlUtils.getHeartbeat(getUrl());
Copy link
Member

Choose a reason for hiding this comment

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

Remove package prefix.

@beiwei30
Copy link
Member Author

@CrazyHZM pls. take a look again.

Copy link
Member

@CrazyHZM CrazyHZM left a comment

Choose a reason for hiding this comment

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

LGTM

@CrazyHZM CrazyHZM merged commit 28bea9c into apache:master May 28, 2019
@beiwei30 beiwei30 deleted the issue3137 branch May 28, 2019 06:45
@beiwei30 beiwei30 restored the issue3137 branch May 28, 2019 06:56
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.

None yet

3 participants