This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 1433ab8398d branch-3.0: [fix](cloud) Replace `cloud cluster` to
`compute group` in error hint (#43379)
1433ab8398d is described below
commit 1433ab8398d5bf5977727e966555d0b77cfa7832
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Nov 7 11:30:57 2024 +0800
branch-3.0: [fix](cloud) Replace `cloud cluster` to `compute group` in
error hint (#43379)
Cherry-picked from #43335
Co-authored-by: deardeng <[email protected]>
---
.../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: [email protected]
For additional commands, e-mail: [email protected]