yiguolei commented on code in PR #50783:
URL: https://github.com/apache/doris/pull/50783#discussion_r2095075724


##########
fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudReplica.java:
##########
@@ -212,41 +214,43 @@ private String getCurrentClusterId() throws 
ComputeGroupException {
         String cluster = null;
         ConnectContext context = ConnectContext.get();
         if (context != null) {
-            if 
(!Strings.isNullOrEmpty(context.getSessionVariable().getCloudCluster())) {
-                cluster = context.getSessionVariable().getCloudCluster();
+            // TODO(wb) rethinking whether should update err status.
+            cluster = context.getCloudCluster();
+
+            if (LOG.isDebugEnabled()) {
+                LOG.debug("get compute group by context {}", cluster);
+            }
+
+            UserIdentity currentUid = context.getCurrentUserIdentity();
+            if (currentUid != null && 
!StringUtils.isEmpty(currentUid.getQualifiedUser())) {

Review Comment:
   这里为什么要判断userid 是不是为null? 



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