Skip to content

[Dubbo-5978] fix nacos-registry dubbo.registry.group no effect#5997

Merged
mercyblitz merged 2 commits intoapache:masterfrom
Huangxuny1:nacos-group-issue
Apr 28, 2020
Merged

[Dubbo-5978] fix nacos-registry dubbo.registry.group no effect#5997
mercyblitz merged 2 commits intoapache:masterfrom
Huangxuny1:nacos-group-issue

Conversation

@Huangxuny1
Copy link
Copy Markdown
Contributor

@Huangxuny1 Huangxuny1 commented Apr 11, 2020

What is the purpose of the change

fix #5978

reproduce use git repo dubbo-spring-boot-samples/dubbo-registry-nacos-samples

just set

dubbo.registry.group=group-demo

Brief changelog

the registryUrl contains key group

we can get registryUrl from dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/support/AbstractRegistry.java getUrl()

modified:   dubbo-registry/dubbo-registry-nacos/src/main/java/org/apache/dubbo/registry/nacos/NacosRegistry.java

Verifying this change

image
image

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.

@Huangxuny1 Huangxuny1 changed the title [Dubbo-5978] fix dubbo.registry.group no effect [Dubbo-5978] fix nacos-registry dubbo.registry.group no effect Apr 11, 2020
@codecov-io
Copy link
Copy Markdown

codecov-io commented Apr 11, 2020

Codecov Report

Merging #5997 into master will decrease coverage by 0.07%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #5997      +/-   ##
============================================
- Coverage     61.21%   61.14%   -0.08%     
+ Complexity      495      493       -2     
============================================
  Files           989      989              
  Lines         39300    39311      +11     
  Branches       5649     5649              
============================================
- Hits          24059    24038      -21     
- Misses        12597    12613      +16     
- Partials       2644     2660      +16     
Impacted Files Coverage Δ Complexity Δ
...org/apache/dubbo/registry/nacos/NacosRegistry.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...rg/apache/dubbo/remoting/utils/PayloadDropper.java 30.76% <0.00%> (-15.39%) 0.00% <0.00%> (ø%)
.../apache/dubbo/rpc/protocol/AsyncToSyncInvoker.java 72.41% <0.00%> (-10.35%) 0.00% <0.00%> (ø%)
...dubbo/remoting/exchange/support/DefaultFuture.java 79.31% <0.00%> (-9.49%) 0.00% <0.00%> (ø%)
...e/dubbo/remoting/transport/netty/NettyChannel.java 55.68% <0.00%> (-4.55%) 20.00% <0.00%> (-1.00%)
.../apache/dubbo/remoting/transport/AbstractPeer.java 58.69% <0.00%> (-4.35%) 0.00% <0.00%> (ø%)
...he/dubbo/remoting/transport/netty/NettyServer.java 70.17% <0.00%> (-3.51%) 8.00% <0.00%> (-1.00%)
.../dubbo/remoting/transport/netty4/NettyChannel.java 65.34% <0.00%> (-2.98%) 0.00% <0.00%> (ø%)
.../exchange/support/header/HeaderExchangeServer.java 65.09% <0.00%> (-1.89%) 0.00% <0.00%> (ø%)
.../remoting/transport/netty4/NettyClientHandler.java 57.62% <0.00%> (-1.70%) 0.00% <0.00%> (ø%)
... and 9 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 317e62f...4c9983a. Read the comment docs.

@mercyblitz mercyblitz added this to the 2.7.7 milestone Apr 28, 2020
@mercyblitz mercyblitz merged commit acd6e87 into apache:master Apr 28, 2020
@mercyblitz
Copy link
Copy Markdown
Contributor

Thanks for your contribution.

@Huangxuny1 Huangxuny1 deleted the nacos-group-issue branch April 28, 2020 12:30
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.

dubbo nacos版本的服务发现 dubbo.registry.group配置无效

3 participants