SEPURI-SAI-KRISHNA commented on issue #18543: URL: https://github.com/apache/dolphinscheduler/issues/18543#issuecomment-5499101240
Hi @Adarsh-Me, thanks for the interest. This one is already covered: #18544 has been open since 10 Aug and is under review by @SbloodyS. It takes the approach you describe. The subquery groups by `task_code` and selects `max(id)`, and the outer query joins on `instance.id = t_max.max_id`, so exactly one row comes back per task code by construction rather than by a tie-break after the fact. It also filters `flag = 1` so only the valid instance of each task code is considered, and it adds a mapper-level regression test in `TaskInstanceDaoImplTest` that reproduces two attempts sharing an `end_time`. -- 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]
