This is an automated email from the ASF dual-hosted git repository. wangbo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new 903c05b3af3 [Improvement]Add more tip when drop workload group failed (#40468) 903c05b3af3 is described below commit 903c05b3af3b99a125ba44693ff453d8a995e7ed Author: wangbo <wan...@apache.org> AuthorDate: Mon Sep 9 10:55:02 2024 +0800 [Improvement]Add more tip when drop workload group failed (#40468) ## Proposed changes Add more tip to tell user what to do when drop wg failed. --- .../org/apache/doris/resource/workloadgroup/WorkloadGroupMgr.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/resource/workloadgroup/WorkloadGroupMgr.java b/fe/fe-core/src/main/java/org/apache/doris/resource/workloadgroup/WorkloadGroupMgr.java index 5ddc5fb68f8..8ba9b1a7609 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/resource/workloadgroup/WorkloadGroupMgr.java +++ b/fe/fe-core/src/main/java/org/apache/doris/resource/workloadgroup/WorkloadGroupMgr.java @@ -429,7 +429,10 @@ public class WorkloadGroupMgr extends MasterDaemon implements Writable, GsonPost // user need to reset user property first Pair<Boolean, String> ret = Env.getCurrentEnv().getAuth().isWorkloadGroupInUse(workloadGroupName); if (ret.first) { - throw new DdlException("workload group " + workloadGroupName + " is set for user " + ret.second); + throw new DdlException("workload group " + workloadGroupName + " is set for user " + ret.second + + ", you can reset the user's property(eg, " + + "set property for " + ret.second + " 'default_workload_group'='xxx'; ), " + + "then you can drop the group."); } // A group with related policies should not be deleted. --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org