-
Notifications
You must be signed in to change notification settings - Fork 26.3k
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
请问,兼容环境下找不到provider,如何排查? #6903
Comments
关注下AbstractRegistry的notify方法,看看服务发现的提供者的url有没有。 |
服务者URL已经正常注册的了,2.6.5的dubbo consumer能够正常找到的 |
所以要排查。先看服务发现的providerUrl有没有,再看consumer这边是否正确生成invoker了,再看RPC时,最终为啥没有找到invokers |
恩,已经找到原因了,本质是org.apache.dubbo.common.URL类下的getParameter(String key)方法没有像旧版本兼容 |
这个是哪个环节的,能否贴下代码。在mergeUrl的时候吗? |
org.apache.dubbo.registry.zookeeper.ZookeeperRegistry类下的doSubscribe(final URL url, final NotifyListener listener)()方法,里面有个比对过程,this.toUrlsWithEmpty(url, path, children); |
核心代码就是org.apache.dubbo.common.utils.UrlUtils类下的isMatch()方法
|
Provider是2.6.5
Consumer想要升级成2.7.8,然后提示找不到Provider,2.6.5的Dubbo是能找到这个Provider的,请问有什么排查路径吗?
The text was updated successfully, but these errors were encountered: