Update AbstractRegistryFactory.java#7528
Conversation
[bugfix] 创建registry错误时输出错误日志
Codecov Report
@@ Coverage Diff @@
## master #7528 +/- ##
============================================
- Coverage 59.33% 58.80% -0.53%
Complexity 501 501
============================================
Files 1079 1076 -3
Lines 43331 43320 -11
Branches 6318 6294 -24
============================================
- Hits 25709 25476 -233
- Misses 14785 15000 +215
- Partials 2837 2844 +7 Continue to review full report at Codecov.
|
xiaoheng1
left a comment
There was a problem hiding this comment.
What scene will be abnormal?
horizonzy
left a comment
There was a problem hiding this comment.
It just add log info than before, it's not necessary.
when i config a registry but havent add a dependency or cofig for a not exist registry, the exception does not have a log, every thing seem ok from log,but it does not work property actually |
|
Yes, the log didn't log this situation. It should be enhanced. |
Template Method Pattern is used in the registryFactory, i think it is the proper place to log error message.if other classes implement RegistryFactory and override the adaptive method shold log the message itself. |
Hi, If you config zookeeper registry without zookeeper-registry dependency, it will throw exception before AbstractRegistryFactory.getRegistry(URL url). You can debug the code at your local machine. |
[bugfix] 创建registry错误时输出错误日志
What is the purpose of the change
Brief changelog
Verifying this change
[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-testto make sure unit-test and integration-test pass.