Skip to content

Commit

Permalink
[fix](case) Fix some non cloud regression case `failed to get cloud c…
Browse files Browse the repository at this point in the history
…ompute group`
  • Loading branch information
deardeng committed Sep 25, 2024
1 parent b52e59a commit dcb2067
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.apache.doris.catalog.Env;
import org.apache.doris.common.AnalysisException;
import org.apache.doris.common.ClientPool;
import org.apache.doris.common.Config;
import org.apache.doris.common.DdlException;
import org.apache.doris.common.ErrorCode;
import org.apache.doris.thrift.FrontendService;
Expand Down Expand Up @@ -215,8 +216,11 @@ private TMasterOpRequest buildStmtForwardParams() throws AnalysisException {
try {
cluster = ctx.getCloudCluster(false);
} catch (Exception e) {
LOG.warn("failed to get cloud compute group", e);
throw new AnalysisException("failed to get cloud compute group", e);
if (Config.isCloudMode()) {
LOG.warn("failed to get cloud compute group", e);
throw new AnalysisException("failed to get cloud compute group", e);
}
// non cloud mode, do nothing
}
if (!Strings.isNullOrEmpty(cluster)) {
params.setCloudCluster(cluster);
Expand Down

0 comments on commit dcb2067

Please sign in to comment.