waterWang opened a new pull request, #18545: URL: https://github.com/apache/dolphinscheduler/pull/18545
Fixes #18543 ## Problem `findLastTaskInstances` was joining on `max(end_time)`, but `end_time` is a MySQL `datetime` without fractional seconds, so two task attempts finishing in the same second produce duplicate rows for the same task code. This causes `Collectors.toMap` to throw `IllegalStateException: Duplicate key` in `DependentExecute#dependResultByAllTaskOfWorkflowInstance. ## Fix Use `max(id)` instead of `max(end_time)` — `id` is an auto-increment primary key, guaranteeing uniqueness per task code. -- 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]
