Browse Source

[Fix-11051][Task]Fix the process exitValue exception when the process times out and th… (#11099)

3.1.0-release
Kerwin 2 years ago committed by GitHub
parent
commit
b79bad19e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java

3
dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java

@ -230,8 +230,7 @@ public abstract class AbstractCommandExecutor {
result.setExitStatusCode(process.exitValue()); result.setExitStatusCode(process.exitValue());
} else { } else {
logger.error("process has failure , exitStatusCode:{}, processExitValue:{}, ready to kill ...", logger.error("process has failure, the task timeout configuration value is:{}, ready to kill ...", taskRequest.getTaskTimeout());
result.getExitStatusCode(), process.exitValue());
ProcessUtils.kill(taskRequest); ProcessUtils.kill(taskRequest);
result.setExitStatusCode(EXIT_CODE_FAILURE); result.setExitStatusCode(EXIT_CODE_FAILURE);
} }

Loading…
Cancel
Save