sunglasses88
sunglasses88
Fixes #5004 Make sure that: - [x] You have read the [contribution guidelines](https://shenyu.apache.org/community/contributor-guide). - [ ] You submit test cases (unit or integration tests) that back your changes. - [x]...
### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior   ### Expected Behavior The name of the rule registered...
Support nacos-to-nacos cluster-level synchronization by specifying serviceName and groupName as ‘ALL’
nacos-sync默认是Service级别的服务同步,需要在控制台配置ServiceName和GroupName才可以进行服务同步。 自[pr304](https://github.com/nacos-group/nacos-sync/pull/304)之后也支持基于Ns-Group级别的服务同步。  通过将ServiceName配置为”ALL“以实现Group级别的同步。 这个pr给了我很大的帮助,我在这个基础上做了一些拓展,让nacos-sync支持Cluster级别的服务同步,只需要在新建同步任务的时候将ServiceName和GroupName均配置为”ALL“即可。 主要改动点在com.alibaba.nacossync.timer.CheckRunningStatusAllThread#run 改动前逻辑:根据GroupName查询服务列表,然后进行同步 改动后逻辑:判断GroupName是否为ALL,如果为false,逻辑和之前一致,根据GroupName查询服务列表,然后进行同步; 如果为true,通过增强后的NacosEnhanceNamingService查询集群下所有服务列表,然后进行同步。 对原有功能无影响。 ``` public void run() { Long startTime = System.currentTimeMillis(); try { // 查找所有ServiceName为”ALL“的任务 List taskDOS = taskAccessService.findServiceNameIsNull() .stream().filter(t -> t.getStatus()...