wangbo commented on code in PR #20048: URL: https://github.com/apache/doris/pull/20048#discussion_r1206593895
########## fe/fe-core/src/main/java/org/apache/doris/resource/resourcegroup/ResourceGroupMgr.java: ########## @@ -114,6 +114,32 @@ public List<TPipelineResourceGroup> getResourceGroup(String groupName) throws Us return resourceGroups; } + public QueryQueue getResourceGroupQueryQueue(String groupName) throws UserException { + readLock(); + try { + ResourceGroup resourceGroup = nameToResourceGroup.get(groupName); + if (resourceGroup == null) { + throw new UserException("Resource group " + groupName + " does not exist"); + } + return resourceGroup.getQueryQueue(); + } finally { + readUnlock(); + } + } + + // called after group loaded from image + // currently mainly used to init Resource Group's query queue + public void initResourceGroup() { Review Comment: Good idea. -- 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