This is an automated email from the ASF dual-hosted git repository.

dataroaring 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 8d3ef9f3868 [fix](cloud) Replace `cloud cluster` to `compute group` in 
error hint (#43335)
8d3ef9f3868 is described below

commit 8d3ef9f3868c49427e4cb246e7a85446364382d5
Author: deardeng <565620...@qq.com>
AuthorDate: Wed Nov 6 20:55:31 2024 +0800

    [fix](cloud) Replace `cloud cluster` to `compute group` in error hint 
(#43335)
---
 .../main/java/org/apache/doris/cloud/analysis/UseCloudClusterStmt.java  | 2 +-
 fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudEnv.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/cloud/analysis/UseCloudClusterStmt.java
 
b/fe/fe-core/src/main/java/org/apache/doris/cloud/analysis/UseCloudClusterStmt.java
index 40bd2dbebc6..e35d337ef35 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/cloud/analysis/UseCloudClusterStmt.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/cloud/analysis/UseCloudClusterStmt.java
@@ -93,7 +93,7 @@ public class UseCloudClusterStmt extends StatementBase 
implements NotFallbackInP
                 cluster, PrivPredicate.USAGE, ResourceTypeEnum.CLUSTER)) {
             throw new AnalysisException("USAGE denied to user '" + 
ConnectContext.get().getQualifiedUser()
                 + "'@'" + ConnectContext.get().getRemoteIP()
-                + "' for cloud cluster '" + cluster + "'");
+                + "' for compute group '" + cluster + "'");
         }
 
         if (!((CloudSystemInfoService) 
Env.getCurrentSystemInfo()).getCloudClusterNames().contains(cluster)) {
diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudEnv.java 
b/fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudEnv.java
index 3138bad382a..f4c6005a0d8 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudEnv.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudEnv.java
@@ -281,7 +281,7 @@ public class CloudEnv extends Env {
             if (LOG.isDebugEnabled()) {
                 LOG.debug("current instance does not have a cluster name :{}", 
clusterName);
             }
-            throw new DdlException(String.format("Cluster %s not exist", 
clusterName),
+            throw new DdlException(String.format("Compute Group %s not exist", 
clusterName),
                 ErrorCode.ERR_CLOUD_CLUSTER_ERROR);
         }
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to