apache/dolphinscheduler · error · TaskException

cancel application error

Error message

cancel application error

What it means

ShellCommandExecutor.cancelApplication() threw while trying to kill the chunjun process during task cancellation — typically the process handle is already gone, the kill signal could not be delivered, or the executor's temp files are inaccessible. It is a cancellation-path failure only; the wrap in TaskException preserves the original cause.

Source

Thrown at dolphinscheduler-task-plugin/dolphinscheduler-task-chunjun/src/main/java/org/apache/dolphinscheduler/plugin/task/chunjun/ChunJunTask.java:203

     * @return AbstractParameters
     */
    @Override
    public AbstractParameters getParameters() {
        return chunJunParameters;
    }

    /**
     * cancel ChunJun process
     *
     * @throws Exception if error throws Exception
     */
    @Override
    public void cancel() throws TaskException {
        // cancel process
        try {
            shellCommandExecutor.cancelApplication();
        } catch (Exception e) {
            throw new TaskException("cancel application error", e);
        }
    }

}

View on GitHub (pinned to 02eac45a1b)

Solutions

  1. Inspect the caused-by exception; if the process is already terminated the kill can be treated as best-effort
  2. Check that the worker's task execute directory still exists and the worker user has permission to signal the process
  3. Manually kill lingering chunjun processes by PID from the task log if needed
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at dolphinscheduler-task-plugin/dolphinscheduler-task-chunjun/src/main/java/org/apache/dolphinscheduler/plugin/task/chunjun/ChunJunTask.java:203 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of apache/dolphinscheduler@02eac45a1b (2026-09-06). Data as JSON: /api/errors/59687a62c641838b. Report an issue: GitHub.