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]: step3 - start to use ConfigConstants #4052

Closed
wants to merge 5 commits into from

Conversation

CrazyHZM
Copy link
Member

What is the purpose of the change

issue #3137:
step3 - start to use ConfigConstants

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.

CrazyHZM added 4 commits May 14, 2019 10:35
# Conflicts:
#	dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/directory/AbstractDirectory.java
#	dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/condition/ConditionRouter.java
#	dubbo-cluster/src/test/java/org/apache/dubbo/rpc/cluster/support/AbstractClusterInvokerTest.java
#	dubbo-common/src/main/java/org/apache/dubbo/common/Constants.java
#	dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/AbstractInterfaceConfig.java
#	dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/AbstractReferenceConfig.java
#	dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java
#	dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/RegistryProtocol.java
#	dubbo-registry/dubbo-registry-default/src/main/java/org/apache/dubbo/registry/dubbo/DubboRegistryFactory.java
#	dubbo-registry/dubbo-registry-default/src/test/java/org/apache/dubbo/registry/dubbo/RegistryDirectoryTest.java
@CrazyHZM CrazyHZM requested a review from beiwei30 May 14, 2019 03:40
@codecov-io
Copy link

Codecov Report

Merging #4052 into master will decrease coverage by 0.02%.
The diff coverage is 74.03%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #4052      +/-   ##
============================================
- Coverage        63%   62.98%   -0.03%     
- Complexity      543      545       +2     
============================================
  Files           757      757              
  Lines         32570    32571       +1     
  Branches       5162     5162              
============================================
- Hits          20521    20514       -7     
- Misses         9684     9695      +11     
+ Partials       2365     2362       -3
Impacted Files Coverage Δ Complexity Δ
.../apache/dubbo/qos/protocol/QosProtocolWrapper.java 64.1% <ø> (-17.95%) 0 <0> (ø)
...onfigcenter/consul/ConsulDynamicConfiguration.java 0% <ø> (ø) 0 <0> (ø) ⬇️
...ain/java/org/apache/dubbo/config/MethodConfig.java 95.12% <ø> (ø) 0 <0> (ø) ⬇️
...enter/support/nacos/NacosDynamicConfiguration.java 0% <ø> (ø) 0 <0> (ø) ⬇️
...g/apache/dubbo/config/AbstractReferenceConfig.java 94% <ø> (ø) 0 <0> (ø) ⬇️
...pache/dubbo/monitor/dubbo/DubboMonitorFactory.java 100% <ø> (ø) 6 <0> (ø) ⬇️
...c/main/java/org/apache/dubbo/common/Constants.java 0% <ø> (ø) 0 <0> (ø) ⬇️
...gcenter/support/etcd/EtcdDynamicConfiguration.java 0% <ø> (ø) 0 <0> (ø) ⬇️
...pport/zookeeper/ZookeeperDynamicConfiguration.java 83.33% <ø> (ø) 6 <0> (ø) ⬇️
...e/dubbo/registry/integration/RegistryProtocol.java 82.69% <ø> (ø) 0 <0> (ø) ⬇️
... and 31 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 d24d614...99ec512. Read the comment docs.

@beiwei30
Copy link
Member

didn't realize you will work on this. I have the same change made against ConfigConstants, which is larger to get rid of Constants completely. Would you mind to review mine?

@beiwei30 beiwei30 closed this May 14, 2019
@beiwei30
Copy link
Member

sorry about this, pls. review #4053.

@CrazyHZM CrazyHZM deleted the constantStep3Config branch May 14, 2019 09:26
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.

3 participants