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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]