When configuring metadataType=remote on the application side, there is no MetadataService service export, and the incorrect call of dubbo admin causes many exceptions on the application side.
java.io.IOException: Service org.apache.dubbo.metadata.MetadataService with version 1.0.0 not found, invocation rejected.
Follow this checklist to help us incorporate your contribution quickly and easily:
[ ] Make sure there is a Github issue filed 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 [ISSUE #123] Fix UnknownException when host config not exist. 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.
[ ] Run `mvn clean compile --batch-mode -DskipTests=false -Dcheckstyle.skip=false -Drat.skip=false -Dmaven.javadoc.skip=true to make sure basic checks pass.
What is the purpose of the change
When configuring
metadataType=remote
on the application side, there is noMetadataService
service export, and the incorrect call of dubbo admin causes many exceptions on the application side.java.io.IOException: Service org.apache.dubbo.metadata.MetadataService with version 1.0.0 not found, invocation rejected.
应用配置
metadataType=remote
的时候,dubbo-admin这里的MetadataService metadataService = MetadataUtils.referProxy(instance).getProxy();
失败调用会对应用侧产生大量异常日志。 另外,不清楚这里定时刷新的作用是什么? 从代码上看仅仅只是触发了一次metadataService.getSubscribedURLs();
调用,对subscribedCache
也没有什么操作.Brief changelog
Verifying this change
Follow this checklist to help us incorporate your contribution quickly and easily:
[ISSUE #123] Fix UnknownException when host config not exist
. Each commit in the pull request should have a meaningful subject line and body.