Closed yongyongwang closed 2 years ago
consul service name : interface name
health service name : interface name : version
类名:org.apache.dubbo.registry.consul.ConsulRegistry
register service name private NewService buildService(URL url) { NewService service = new NewService(); service.setAddress(url.getHost()); service.setPort(url.getPort()); service.setId(buildId(url)); service.setName(url.getServiceInterface()); 接口名称 service.setCheck(buildCheck(url)); service.setTags(buildTags(url)); service.setMeta(Collections.singletonMap(URL_META_KEY, url.toFullString())); return service; }
health check service name: url.getServiceKey();
private void processService() {
String service = url.getServiceKey(); 健康检查用了接口名称:版本号,不一致
Response<List
Try it with the latest version, if you still have problems, you can reopen the issue
兄弟你的问题解决了吗?
environment : dubbo + consul
org.apache.dubbo.registry.consul.ConsulRegistry
private NewService buildService(URL url) { NewService service = new NewService(); service.setAddress(url.getHost()); service.setPort(url.getPort()); service.setId(buildId(url)); service.setName(url.getServiceInterface()); service.setCheck(buildCheck(url)); service.setTags(buildTags(url)); service.setMeta(Collections.singletonMap(URL_META_KEY, url.toFullString())); return service; }
serviceName not contains dubbo service version
serverName contains service version
com.ecwid.consul.v1.health.HealthConsulClient
dubbo service restart , dubbo consumer will not get dubbo service