-
Notifications
You must be signed in to change notification settings - Fork 26.5k
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-4771]fix protocol register set false not work #4776
[Dubbo-4771]fix protocol register set false not work #4776
Conversation
Don't think it actually changes something. Now we have all services configured with register=false by default. Soon there is no filter for skipping the registration based on property set we have this: [DUBBO] Register dubbo service org.apache.dubbo.samples.api.GreetingService url hessian://172.25.26.102:20881/org.apache.dubbo.samples.api.GreetingService?blalbla&[register=false]&release=2.7.4-SNAPSHOT&revision=1.0.0&balblablabla, dubbo version: 2.7.4-SNAPSHOT, current host: 172.25.26.102 As you can see service has register set to false but anyway it was registered. |
@AnthonyKot I test it again and it works. You can watch the zookeeper if the service is registered. It's just the log has an error. |
d6c4130
to
c21a06b
Compare
c21a06b
to
860b1b6
Compare
Codecov Report
@@ Coverage Diff @@
## master #4776 +/- ##
============================================
+ Coverage 63.92% 63.92% +<.01%
Complexity 451 451
============================================
Files 769 769
Lines 33171 33188 +17
Branches 5229 5231 +2
============================================
+ Hits 21204 21216 +12
+ Misses 9547 9546 -1
- Partials 2420 2426 +6
Continue to review full report at Codecov.
|
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.
LGTM. @tswstarplanet thanks for catching this bug, it looks like we should revert all default values from org.apache.dubbo.config.AbstractServiceConfig
What is the purpose of the change
fix #4771
Brief changelog
AbstractServiceConfig.java
Verifying this change
XXXXX
Follow this checklist to help us incorporate your contribution quickly and easily:
[Dubbo-XXX] Fix UnknownException when host config not exist #XXX
. Each commit in the pull request should have a meaningful subject line and body.mvn clean install -DskipTests=false
&mvn clean test-compile failsafe:integration-test
to make sure unit-test and integration-test pass.