Skip to content

SimpleJobExplorer#getLastJobExecution does not fetch step executions #3943

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fmbenhassine opened this issue Jun 17, 2021 · 0 comments
Closed
Assignees
Labels
for: backport-to-4.2.x Issues that will be back-ported to the 4.2.x line in: core type: bug
Milestone

Comments

@fmbenhassine
Copy link
Contributor

SimpleJobExplorer#getLastJobExecution returns the last job execution without fetching its step executions and execution contexts. This is not consistent with SimpleJobExplorer#getJobExecution where the entire object graph is returned.

Reference: https://stackoverflow.com/questions/68015813/spring-batch-jobexecution-getstepexecutions-is-empty

@fmbenhassine fmbenhassine added type: bug in: core for: backport-to-4.2.x Issues that will be back-ported to the 4.2.x line labels Jun 17, 2021
@fmbenhassine fmbenhassine added this to the 4.3.4 milestone Jun 17, 2021
@fmbenhassine fmbenhassine self-assigned this Jun 17, 2021
fmbenhassine added a commit to fmbenhassine/spring-batch that referenced this issue Jun 17, 2021
Before this commit, SimpleJobExplorer#getLastJobExecution returned
the last job execution without fetching its step executions and
their execution contexts.

This commit fixes the implementation to load the entire object
graph as done in SimpleJobExplorer#getJobExecution.

Issue spring-projects#3943
fmbenhassine added a commit that referenced this issue Aug 27, 2021
Before this commit, SimpleJobExplorer#getLastJobExecution returned
the last job execution without fetching its step executions and
their execution contexts.

This commit fixes the implementation to load the entire object
graph as done in SimpleJobExplorer#getJobExecution.

Resolves #3943 #3944
fmbenhassine added a commit that referenced this issue Aug 27, 2021
Before this commit, SimpleJobExplorer#getLastJobExecution returned
the last job execution without fetching its step executions and
their execution contexts.

This commit fixes the implementation to load the entire object
graph as done in SimpleJobExplorer#getJobExecution.

Resolves #3943 #3944
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: backport-to-4.2.x Issues that will be back-ported to the 4.2.x line in: core type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant