Closed wuwen5 closed 1 year ago
SonarCloud Quality Gate failed.
0 Bugs
0 Vulnerabilities
0 Security Hotspots
4 Code Smells
No Coverage information
0.0% Duplication
到底是使用注册中心地址还是元数据中心地址,应该是取决于应用侧的配置,如果应用侧配置了不同的元数据中心,则admin就应该从这个元数据中心读取数据。
SonarCloud Quality Gate failed.
0 Bugs
0 Vulnerabilities
0 Security Hotspots
4 Code Smells
No Coverage information
0.0% Duplication
Catch issues before they fail your Quality Gate with our IDE extension
SonarLint
What is the purpose of the change
当将
Nacos
用作注册中心和元数据中心时,并且元数据中心与注册中心的地址不相同时,会导致数据加载出现问题。根据当前
NacosServiceMapping
的实现方式,它应该从注册中心的地址查询服务信息,而不是使用配置的元数据中心地址。When
Nacos
is used as the registration center and metadata center, and the addresses of the metadata center and the registration center are different, it will cause problems in data loading.According to the current implementation of
NacosServiceMapping
, it should query service information from the registry address instead of using the configured metadata center address.Brief changelog
XX
Verifying this change
XXXX
Follow this checklist to help us incorporate your contribution quickly and easily:
[ISSUE #123] Fix UnknownException when host config not exist
. Each commit in the pull request should have a meaningful subject line and body.