You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JdbcJobExecutionDao#GET_RUNNING_EXECUTIONS currently has order by E.JOB_EXECUTION_ID desc however JdbcJobExecutionDao#findRunningJobExecutions(String) returns a HashSet therefore the iteration order is undefined. We should either
remove the order by
return a TreeSet
The text was updated successfully, but these errors were encountered:
Thank you for raising this. The contract of JobExecutionDao#findRunningJobExecutions does not specify the order in which running executions are returned (hence the Set return type). So clients should not be expecting any order or any sorted data structure. I think the order by clause is irrelevant here and could be removed.
Remove the sorting from JdbcJobExecutionDao#GET_RUNNING_EXECUTIONS
because #findRunningJobExecutions returns an unsorted HashSet.
Issue spring-projects#3987
Remove the sorting from JdbcJobExecutionDao#GET_RUNNING_EXECUTIONS
because #findRunningJobExecutions returns an unsorted HashSet.
Issue spring-projects#3987
JdbcJobExecutionDao#GET_RUNNING_EXECUTIONS
currently hasorder by E.JOB_EXECUTION_ID desc
howeverJdbcJobExecutionDao#findRunningJobExecutions(String)
returns aHashSet
therefore the iteration order is undefined. We should eitherorder by
TreeSet
The text was updated successfully, but these errors were encountered: