AlbumenJ commented on issue #13298: URL: https://github.com/apache/dubbo/issues/13298#issuecomment-1798367473
> 调用`nacosNamingService#getAllInstances(serviceName, groupName, new ArrayList<>(), true)`从nacos源集群获取指定应用名的实例数据里没有接口到应用的映射关系,只是个半成品,同步到目标集群也不能被目标集群的消费者使用(缺少映射关系,dubbo consumer没办法确定相关rpc接口要去调用哪个应用):  上面半成品缺少的映射关系元数据在nacos源集群的元数据中心,打开元数据中心,找到上面这个应用名的一个接口名HelloAservice(我知道这个接口名,但nacos-sync它并不知道啊):  点击详情,查看这个接口配置的应用名就是nacos-sync配置的同步应用实例名称:  nacos-sync只知道应用名的前提下,需要遍历元数据中心记录的每个映射关系元数据,逐个确认要同步哪个,这样做的效率比较差(nacos只有按接口名查询映射关系的grpc接口以及查询全部映射关系的http接口,没有提供按映射内容的查询接口)。 这里还是没懂的是为什么同步数据的来源是 **接口** -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
