You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by ca...@apache.org on 2023/03/02 07:22:34 UTC
[linkis] branch dev-1.3.3 updated: The abnormal class description information in the checkEngineConnDistHome method supplements the path information (#4283)
This is an automated email from the ASF dual-hosted git repository.
casion pushed a commit to branch dev-1.3.3
in repository https://gitbox.apache.org/repos/asf/linkis.git
The following commit(s) were added to refs/heads/dev-1.3.3 by this push:
new f1deacaef The abnormal class description information in the checkEngineConnDistHome method supplements the path information (#4283)
f1deacaef is described below
commit f1deacaef7707b762492a441e3c84b32f4827469
Author: binbincheng <10...@users.noreply.github.com>
AuthorDate: Thu Mar 2 15:22:29 2023 +0800
The abnormal class description information in the checkEngineConnDistHome method supplements the path information (#4283)
---
.../engineplugin/errorcode/EngineconnCoreErrorCodeSummary.java | 8 +++++---
.../server/localize/AbstractEngineConnBmlResourceGenerator.scala | 4 ++--
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/linkis-computation-governance/linkis-engineconn/linkis-engineconn-plugin-core/src/main/java/org/apache/linkis/manager/engineplugin/errorcode/EngineconnCoreErrorCodeSummary.java b/linkis-computation-governance/linkis-engineconn/linkis-engineconn-plugin-core/src/main/java/org/apache/linkis/manager/engineplugin/errorcode/EngineconnCoreErrorCodeSummary.java
index f7fd0165b..58e3b5fad 100644
--- a/linkis-computation-governance/linkis-engineconn/linkis-engineconn-plugin-core/src/main/java/org/apache/linkis/manager/engineplugin/errorcode/EngineconnCoreErrorCodeSummary.java
+++ b/linkis-computation-governance/linkis-engineconn/linkis-engineconn-plugin-core/src/main/java/org/apache/linkis/manager/engineplugin/errorcode/EngineconnCoreErrorCodeSummary.java
@@ -27,12 +27,14 @@ public enum EngineconnCoreErrorCodeSummary implements LinkisErrorCode {
CANNOT_DEFAULT_EF(20000, "Cannot find default ExecutorFactory(找不到默认的 ExecutorFactory)"),
ETL_NOT_EXISTS(20000, "EngineTypeLabel does not exist(EngineTypeLabel 不存在)"),
UCL_NOT_EXISTS(20000, "UserCreatorLabel does not exist(UserCreatorLabel 不存在)"),
- CANNOT_HOME_PATH_EC(20001, "Cannot find the home path of engineConn(找不到 engineConn 的 home 路径)"),
+ CANNOT_HOME_PATH_EC(
+ 20001, "Cannot find the home path of engineConn at: {0}(找不到 engineConn 的 home 路径,该路径为:{0})"),
CANNOT_HOME_PATH_DIST(
- 20001, "Cannot find the home path of engineconn dist(找不到 engineconn dist 的 home 路径)"),
+ 20001,
+ "Could not find the home path for engineconn dist at: {0}(找不到 engineconn dist 的 home 路径,该路径为:{0})"),
DIST_IS_EMPTY(
20001,
- "The dist of EngineConn is empty,engineConnType is:{0}(EngineConn 的 dist 为空,engineConnType为:{})"),
+ "The dist of EngineConn is empty,engineConnType is:{0}(EngineConn 的 dist 为空,engineConnType为:{0})"),
ENGINE_VERSION_NOT_FOUND(
20001,
"Cannot find the path of engineConn with specified version: {0} and engineConnType: {1}(找不到版本为:{0} engineConnType 为:{1}的engineConn路径"),
diff --git a/linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/scala/org/apache/linkis/engineplugin/server/localize/AbstractEngineConnBmlResourceGenerator.scala b/linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/scala/org/apache/linkis/engineplugin/server/localize/AbstractEngineConnBmlResourceGenerator.scala
index d62f8996f..476a96978 100644
--- a/linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/scala/org/apache/linkis/engineplugin/server/localize/AbstractEngineConnBmlResourceGenerator.scala
+++ b/linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/scala/org/apache/linkis/engineplugin/server/localize/AbstractEngineConnBmlResourceGenerator.scala
@@ -34,7 +34,7 @@ abstract class AbstractEngineConnBmlResourceGenerator extends EngineConnBmlResou
if (!new File(getEngineConnsHome).exists) {
throw new EngineConnPluginErrorException(
CANNOT_HOME_PATH_EC.getErrorCode,
- CANNOT_HOME_PATH_EC.getErrorDesc
+ MessageFormat.format(CANNOT_HOME_PATH_EC.getErrorDesc, getEngineConnsHome)
)
}
@@ -70,7 +70,7 @@ abstract class AbstractEngineConnBmlResourceGenerator extends EngineConnBmlResou
if (!engineConnPackageHome.exists()) {
throw new EngineConnPluginErrorException(
CANNOT_HOME_PATH_DIST.getErrorCode,
- CANNOT_HOME_PATH_DIST.getErrorDesc
+ MessageFormat.format(CANNOT_HOME_PATH_DIST.getErrorDesc, engineConnPackageHome.getPath)
)
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org