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 2022/04/13 10:02:20 UTC

[incubator-linkis] branch dev-1.1.2 updated: System.env should be replaced with System.properties #1965 (#1966)

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

casion pushed a commit to branch dev-1.1.2
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git


The following commit(s) were added to refs/heads/dev-1.1.2 by this push:
     new 7ca980669 System.env should be replaced with System.properties #1965 (#1966)
7ca980669 is described below

commit 7ca98066935f08787ff0c4b1a5fe8cc424f87ca1
Author: peacewong <wp...@gmail.com>
AuthorDate: Wed Apr 13 18:02:14 2022 +0800

    System.env should be replaced with System.properties #1965 (#1966)
---
 .../computation/executor/service/TaskExecutionServiceImpl.scala         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/linkis-computation-governance/linkis-engineconn/linkis-computation-engineconn/src/main/scala/org/apache/linkis/engineconn/computation/executor/service/TaskExecutionServiceImpl.scala b/linkis-computation-governance/linkis-engineconn/linkis-computation-engineconn/src/main/scala/org/apache/linkis/engineconn/computation/executor/service/TaskExecutionServiceImpl.scala
index dfee37c35..1d1575f0d 100644
--- a/linkis-computation-governance/linkis-engineconn/linkis-computation-engineconn/src/main/scala/org/apache/linkis/engineconn/computation/executor/service/TaskExecutionServiceImpl.scala
+++ b/linkis-computation-governance/linkis-engineconn/linkis-computation-engineconn/src/main/scala/org/apache/linkis/engineconn/computation/executor/service/TaskExecutionServiceImpl.scala
@@ -133,7 +133,7 @@ class TaskExecutionServiceImpl extends TaskExecutionService with Logging with Re
     }
     val jobId = JobUtils.getJobIdFromMap(requestTask.getProperties)
     if (StringUtils.isNotBlank(jobId)) {
-      System.getenv().put(ComputationExecutorConf.JOB_ID_TO_ENV_KEY, jobId)
+      System.getProperties().put(ComputationExecutorConf.JOB_ID_TO_ENV_KEY, jobId)
       logger.info(s"Received job with id ${jobId}.")
     }
     val task = new CommonEngineConnTask(String.valueOf(taskId), retryAble)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org