TongWenbin opened a new issue, #15283: URL: https://github.com/apache/dolphinscheduler/issues/15283
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened We update dolphinscheduler from 2.0.5 to 2.0.9, and then we found that when we set a retry, The latest taskInstance overwrites the old one, And at the same time, our retry in shell task will fails immediately with an error : [ERROR] 2023-12-05 04:11:57.460 [TaskLogInfo- - [taskAppId=TASK-6940937559220_144-2498526-10848428]] - shell task error java.lang.RuntimeException: task execution time out at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.getRemainTime(AbstractCommandExecutor.java:431) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:181) at org.apache.dolphinscheduler.plugin.task.shell.ShellTask.handle(ShellTask.java:97) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:198) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) ### What you expected to happen something went wrong when the new instance overwrites the old,This reply is a possible cause:https://github.com/apache/dolphinscheduler/pull/10541#issuecomment-1840233590 ### How to reproduce use shell node which exec "java -jar XXXX.jar" and trigger failed retry, then there will be only one taskInstance of the latest, and report "shell task error java.lang.RuntimeException: task execution time out" ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
