dubbo 2.7.14 集成nacos注册中心,不push nacos metadata 对服务调用会有影响?
- Dominant language
- Java
- Stars
- 41.6k
- Forks
- 26.4k
- Avg merge
- 15h 13m
- Merged PRs (30d)
- 4
Description
dubbo 2.7.14 集成nacos注册中心,相当于不调用NacosMetadataReport的storeMetadata方法,具体代码细节如下:
private void storeMetadata(BaseMetadataIdentifier identifier, String value) {
try {
boolean publishResult = configService.publishConfig(identifier.getUniqueKey(KeyTypeEnum.UNIQUE_KEY), group, value);
if (!publishResult) {
throw new RuntimeException("publish nacos metadata failed");
}
} catch (Throwable t) {
logger.error("Failed to put " + identifier + " to nacos " + value + ", cause: " + t.getMessage(), t);
throw new RpcException("Failed to put " + identifier + " to nacos " + value + ", cause: " + t.getMessage(), t);
}
}
会有其他影响?
Contributor guide
Research direction
Start at NacosMetadataReport and its storeMetadata method, then trace the BaseMetadataIdentifier and configService.publishConfig call shown in the issue. Compare the service-invocation path with and without metadata publication and document whether any call behavior changes, supported by a focused test or reproducible example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend-api-design, distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100