-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Description
Describe the bug
当前 nacos client 会接收一个 service 所有 cluster 的推送,然后在本地根据 clusters 选择 listerner 进行回调。所以,serviceInfoHolder 中的 map,直接存储 groupName@@serviceName 作为 key 就行了,不需要加上 clusters。
另外,代码中从 serviceInfoHolder 获取 value 的时候,也没有传 clusters,所以存的时候不能加 clusters 存储,可能导致问题
The current nacos client will receive pushes from all clusters in a service, and then select listener locally according to clusters to perform callbacks. Therefore, just store groupName@@serviceName as key in serviceInfoHolder, and you don't need to add clusters.
Expected behavior
A clear and concise description of what you expected to happen.
Actually behavior
A clear and concise description of what you actually to happen.
How to Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See errors
Desktop (please complete the following information):
- OS: [e.g. Centos]
- Version [e.g. nacos-server 1.3.1, nacos-client 1.3.1]
- Module [e.g. naming/config]
- SDK [e.g. original, spring-cloud-alibaba-nacos, dubbo]
Additional context
Add any other context about the problem here.