yiguolei commented on code in PR #38486: URL: https://github.com/apache/doris/pull/38486#discussion_r1696595316
########## fe/fe-core/src/main/java/org/apache/doris/resource/workloadgroup/WorkloadGroup.java: ########## @@ -605,11 +619,39 @@ public TopicInfo toTopicInfo() { tWorkloadGroupInfo.setRemoteReadBytesPerSecond(Long.valueOf(remoteReadBytesPerSecStr)); } + String tagStr = properties.get(TAG); + if (!StringUtils.isEmpty(tagStr)) { + tWorkloadGroupInfo.setTag(tagStr); + } + TopicInfo topicInfo = new TopicInfo(); topicInfo.setWorkloadGroupInfo(tWorkloadGroupInfo); return topicInfo; } + public static boolean isMatchBackendTag(String wgTagStr, String beTagStr) { Review Comment: move this method to Backend class 因为所有的tag 都会跟backend 相关。 另外,tag 列表,split 之后,要trim 一下前后的空格 -- 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