morningman commented on code in PR #33596:
URL: https://github.com/apache/doris/pull/33596#discussion_r1562295082


##########
fe/fe-core/src/main/java/org/apache/doris/resource/workloadgroup/WorkloadGroupMgr.java:
##########
@@ -223,16 +223,22 @@ public List<TPipelineWorkloadGroup> 
getTWorkloadGroupById(long wgId) {
         return tWorkloadGroups;
     }
 
-    public List<TPipelineWorkloadGroup> 
getTWorkloadGroupByUserIdentity(UserIdentity user) throws UserException {
+    public List<TPipelineWorkloadGroup> 
getWorkloadGroupForRoutineLoad(UserIdentity user) {
         String groupName = 
Env.getCurrentEnv().getAuth().getWorkloadGroup(user.getQualifiedUser());
         List<TPipelineWorkloadGroup> ret = new ArrayList<>();
         readLock();
         try {
             WorkloadGroup wg = nameToWorkloadGroup.get(groupName);
             if (wg == null) {
-                throw new UserException("can not find workload group " + 
groupName);
+                LOG.warn("can not find workload group " + groupName + " for 
user " + user.getQualifiedUser());
+                wg = nameToWorkloadGroup.get(DEFAULT_GROUP_NAME);
+                if (wg == null) {

Review Comment:
   How can this happen?



-- 
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

Reply via email to