dataroaring commented on code in PR #38834: URL: https://github.com/apache/doris/pull/38834#discussion_r1772462089
########## fe/fe-core/src/main/java/org/apache/doris/qe/ConnectContext.java: ########## @@ -1272,6 +1249,11 @@ public String getCloudCluster(boolean updateErr) { if (!Strings.isNullOrEmpty(defaultCluster)) { cluster = defaultCluster; choseWay = "default cluster"; + if (!Env.getCurrentEnv().getAuth().checkCloudPriv(getCurrentUserIdentity(), + cluster, PrivPredicate.USAGE, ResourceTypeEnum.CLUSTER)) { + throw new ComputeGroupException(String.format("default cluster %s check auth failed", cluster), Review Comment: compute group ########## fe/fe-core/src/main/java/org/apache/doris/qe/ConnectContext.java: ########## @@ -1282,10 +1264,13 @@ public String getCloudCluster(boolean updateErr) { if (Strings.isNullOrEmpty(cluster)) { LOG.warn("cant get a valid cluster for user {} to use", getCurrentUserIdentity()); + ComputeGroupException exception = new ComputeGroupException( + "the user is not granted permission to the cluster", + ComputeGroupException.FailedTypeEnum.CURRENT_USER_NO_AUTH_TO_USE_ANY_COMPUTE_GROUP); Review Comment: compute group -- 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