Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring cloud alibaba 2.2.3版本使用端点/actuator/service-registry注销服务注册问题 #1893

Closed
itunic opened this issue Jan 3, 2021 · 2 comments · Fixed by #1904
Assignees
Labels
area/nacos spring cloud alibaba nacos good first issue

Comments

@itunic
Copy link

itunic commented Jan 3, 2021

问题:通过spring提供的端点/actuator/service-registry 进行注销服务注册时,发生 ErrCode:500, ErrMsg:ErrCode:400, ErrMsg:instance not exist: 192.168.2.14:9091:unknown:DEFAULT_1.0_true_false_DEFAULT。

排查过程。

通过查看源码
com.alibaba.cloud.nacos.registry.NacosServiceRegistry.setStatus(Registration registration, String status)方法。调用了
com.alibaba.nacos.client.naming.NacosNamingMaintainService.updateInstance(String serviceName, Instance instance),发现里面为硬编码this.updateInstance(serviceName, "DEFAULT_GROUP", instance);
在服务注册时指定group时会发生此问题。

bug版本:Spring cloud alibaba 2.2.1~ 2.2.3

@yuhuangbin
Copy link
Collaborator

contribute are welcome, refer NacosServiceRegistry

@yuhuangbin yuhuangbin added good first issue area/nacos spring cloud alibaba nacos labels Jan 5, 2021
@brotherlu-xcq
Copy link
Contributor

I want to solve it. please assgin to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/nacos spring cloud alibaba nacos good first issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants