You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "cvictory (GitHub)" <gi...@apache.org> on 2019/01/15 04:53:23 UTC
[GitHub] [incubator-dubbo] cvictory commented on issue #3231: In
dubbo-2.7 tag route,
dubbo 2.6 client invoke 2.7 server work well but dubbo 2.7 client invoke 2.6
donot work well
In dubbo 2.6 , there are some key points in this class com.alibaba.dubbo.rpc.cluster.directory.AbstractDirectory.
```
protected void setRouters(List<Router> routers) {
// copy list
routers = routers == null ? new ArrayList<Router>() : new ArrayList<Router>(routers);
// append url router
String routerkey = url.getParameter(Constants.ROUTER_KEY);
if (routerkey != null && routerkey.length() > 0) {
RouterFactory routerFactory = ExtensionLoader.getExtensionLoader(RouterFactory.class).getExtension(routerkey);
routers.add(routerFactory.getRouter(url));
}
// append mock invoker selector
routers.add(new MockInvokersSelector());
Collections.sort(routers);
this.routers = routers;
}
```
so should we keep this logic code ?
[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3231 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org