Skip to content

processServiceInfo 逻辑有一个 BUG #13138

@luky116

Description

@luky116

Describe the bug

当前 nacos client 会接收一个 service 所有 cluster 的推送,然后在本地根据 clusters 选择 listerner 进行回调。所以,serviceInfoHolder 中的 map,直接存储 groupName@@serviceName 作为 key 就行了,不需要加上 clusters。

另外,代码中从 serviceInfoHolder 获取 value 的时候,也没有传 clusters,所以存的时候不能加 clusters 存储,可能导致问题
image

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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions