yiguolei commented on code in PR #50577: URL: https://github.com/apache/doris/pull/50577#discussion_r2072798913
########## fe/fe-core/src/main/java/org/apache/doris/resource/computegroup/ComputeGroupMgr.java: ########## @@ -72,4 +72,9 @@ public Set<String> getAllComputeGroupIds() { return ret; } + public String getComputeGroupNameById(String clusterId) { + CloudSystemInfoService cloudSystemInfoService = (CloudSystemInfoService) systemInfoService; Review Comment: 参考这个代码 public ComputeGroup getComputeGroupByName(String name) throws UserException { if (Config.isCloudMode()) { CloudSystemInfoService cloudSystemInfoService = (CloudSystemInfoService) systemInfoService; String clusterId = cloudSystemInfoService.getCloudClusterIdByName(name); if (StringUtils.isEmpty(clusterId)) { throw new UserException("Can not find compute group:" + name); } return new CloudComputeGroup(clusterId, name, cloudSystemInfoService); } else { return new ComputeGroup("", name, systemInfoService); } } 这个代码里,new ComputeGroup("", name, systemInfoService); 这行,id 应该也传递成name -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org