Comments (1)
简单说一下问题和解决思路:
RegistrationListener.processNewSubscriberEvent方法会查找泛化调用的微服务,泛化访问的URL如下
consumer://10.69.34.249/org.apache.dubbo.rpc.service.GenericService?application=cse-v2-consumer&category=providers,configurators,routers&check=false&dubbo=2.0.2&generic=true&init=false&interface=com.huaweicloud.api.ProviderService&pid=17396&release=2.7.15&side=consumer&sticky=false×tamp=1645405274320
但是这里面是找不到的,这个泛化其实是和interface参数的微服务一一对应的,此处是com.huaweicloud.api.ProviderService
RegistrationListener.instancesToURLs方法里面会根据schemaInfos向notifyUrls里面添加key,value(是个URL列表),这里如果不添加org.apache.dubbo.rpc.service.GenericService,后面泛化调用的时候找不到对应的org.apache.dubbo.rpc.Invoker,所以这里也要做处理,
每个schema都额外针对泛化做一次处理,value列表里面的URL值类似如下:
dubbo://10.69.34.249:8085/com.huaweicloud.api.ProviderService?anyhost=true&application=cse-v2-provider&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.huaweicloud.api.ProviderService&methods=sayHello&pid=18408&release=2.7.15&service.name=ServiceBean:/com.huaweicloud.api.ProviderService&side=provider×tamp=1644565441839
测试场景,用了2个GenericService,这两个泛化都是由一个服务器的provider提供的,又测试一下从consumer调用2个不同的provider的GenericService,都正常通过测试
from dubbo-servicecomb.
Related Issues (20)
- encoding project name for non english
- fix circuit breaker bean property slidingWindowType
- 支持灰度发布功能 HOT 1
- 更新最新版本的注册中心client
- 启动ServiceCenter的watch模式ServiceCenterWatch中web socket失败,报错,提示web scoket closed,code =-1
- dubbo rest https support
- dubbo元数据采用schema内容表示,减少实例数据大小
- heartbeat interval support configuration
- dubbo-serviceComb使用带https的注册中心和配置中心的CSE时,报错 HOT 6
- fix Fix CVE-2021-43297
- Class path contains multiple SLF4J bindings.
- remove dtm module
- update license
- upgrade servicecomb to latest version to fix bugs HOT 1
- fix problems when configuration are in application.yml can not using kie
- upgrade servicecomb versions to solve known issues
- 修改dubbo自定义的元数据,shcema ids not equal HOT 1
- 最新版本的springboot+dubbo使用cse作为容器服务启动异常 HOT 3
- KieConfigManager.firstPull 里面的httprequest请求状态码为304 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dubbo-servicecomb.