wangbo commented on code in PR #20048: URL: https://github.com/apache/doris/pull/20048#discussion_r1206581958
########## fe/fe-core/src/main/java/org/apache/doris/resource/resourcegroup/ResourceGroup.java: ########## @@ -85,11 +97,54 @@ private ResourceGroup(long id, String name, Map<String, String> properties, long } } + // called when first create a resource group, load from image or user new create a group + public void initQueryQueue() { + resetQueueProperty(properties); + // if query queue property is not set, when use default value + this.queryQueue = new QueryQueue(maxConcurrency, maxQueueSize, queueTimeout); + } + + void resetQueryQueue(QueryQueue queryQueue) { + resetQueueProperty(properties); + this.queryQueue = queryQueue; + this.queryQueue.resetQueueProperty(this.maxConcurrency, this.maxQueueSize, this.queueTimeout); + + } + + private void resetQueueProperty(Map<String, String> properties) { + if (properties.containsKey(MAX_CONCURRENCY)) { + this.maxConcurrency = Integer.parseInt(properties.get(MAX_CONCURRENCY)); + } else { + this.maxConcurrency = Integer.MAX_VALUE; + properties.put(MAX_CONCURRENCY, String.valueOf(this.maxConcurrency)); Review Comment: Concurrency is a necessary property for group, so it should be showed all the time. Currently ```enable enable_query_queue``` is a temporary variable, it should be keep until this feature is stable enough. -- 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