[ISSUE #11951] Fix the problem that the servicename and groupname are not resolved correctly when deleting an empty service instance (#11955)

* Fixed an issue where the maximum number of anti-fragile plug-ins implemented by default in Nacos is one more than the actual number of connections.

* bug fix : 修改删除空服务实例时,服务名和分组名没有正确解析的问题
This commit is contained in:
Happy-26 2024-04-15 15:20:02 +08:00 committed by GitHub
parent 9b2cc662ec
commit 2005ca6f90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -131,7 +131,8 @@ public class ServiceController {
getServiceOperator().delete(namespaceId, serviceName);
NotifyCenter.publishEvent(
new DeregisterServiceTraceEvent(System.currentTimeMillis(), namespaceId, "", serviceName));
new DeregisterServiceTraceEvent(System.currentTimeMillis(), namespaceId,
NamingUtils.getGroupName(serviceName), NamingUtils.getServiceName(serviceName)));
return "ok";
}