{"record":{"id":"59687a62c641838b","repo":"apache/dolphinscheduler","slug":"cancel-application-error-59687a","errorCode":null,"errorMessage":"cancel application error","messagePattern":"cancel application error","errorType":"exception","errorClass":"TaskException","httpStatus":null,"severity":"error","filePath":"dolphinscheduler-task-plugin/dolphinscheduler-task-chunjun/src/main/java/org/apache/dolphinscheduler/plugin/task/chunjun/ChunJunTask.java","lineNumber":203,"sourceCode":"     * @return AbstractParameters\n     */\n    @Override\n    public AbstractParameters getParameters() {\n        return chunJunParameters;\n    }\n\n    /**\n     * cancel ChunJun process\n     *\n     * @throws Exception if error throws Exception\n     */\n    @Override\n    public void cancel() throws TaskException {\n        // cancel process\n        try {\n            shellCommandExecutor.cancelApplication();\n        } catch (Exception e) {\n            throw new TaskException(\"cancel application error\", e);\n        }\n    }\n\n}\n","sourceCodeStart":185,"sourceCodeEnd":208,"githubUrl":"https://github.com/apache/dolphinscheduler/blob/02eac45a1b6676e639fcbfb4be2243de5771b05d/dolphinscheduler-task-plugin/dolphinscheduler-task-chunjun/src/main/java/org/apache/dolphinscheduler/plugin/task/chunjun/ChunJunTask.java#L185-L208","documentation":"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.","triggerScenarios":"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.","commonSituations":"See trigger scenarios.","solutions":["Inspect the caused-by exception; if the process is already terminated the kill can be treated as best-effort","Check that the worker's task execute directory still exists and the worker user has permission to signal the process","Manually kill lingering chunjun processes by PID from the task log if needed"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"02eac45a1b6676e639fcbfb4be2243de5771b05d","analyzedAt":"2026-09-06T17:43:00.555Z","contentChangedAt":"2026-09-06T17:43:00.555Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}