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
Bug description org.springframework.batch.core.repository.support.SimpleJobRepository#deleteJobExecution(JobExecution) does not follow the API contract outlined in org.springframework.batch.core.repository.JobRepository#deleteJobExecution(JobExecution).
Delete the job execution object graph (ie the job execution with its execution context, all related step executions and their executions contexts, as well as associated job parameters)
Yet SimpleJobRepository does not such thing. It only deletes the job execution with its execution context as well as associated job parameters. That's why JobRepositoryTestUtils#removeJobExecution(JobExecution) has to iterate over the StepExecutions, see #4242.
Environment
Spring Batch: 5.0.0
Steps to reproduce
create a JobExecution with StepExecutions
call JobRepository#deleteJobExecution(JobExecution) without calling JobRepository#deleteStepExecution(StepExecution) first
Expected behavior
SimpleJobRepository.deleteJobExecution follows the API contract and deletes step executions and step execution contexts as well.
The text was updated successfully, but these errors were encountered:
Bug description
org.springframework.batch.core.repository.support.SimpleJobRepository#deleteJobExecution(JobExecution)
does not follow the API contract outlined inorg.springframework.batch.core.repository.JobRepository#deleteJobExecution(JobExecution)
.Yet
SimpleJobRepository
does not such thing. It only deletes the job execution with its execution context as well as associated job parameters. That's whyJobRepositoryTestUtils#removeJobExecution(JobExecution)
has to iterate over theStepExecution
s, see #4242.Environment
Spring Batch: 5.0.0
Steps to reproduce
JobExecution
withStepExecution
sJobRepository#deleteJobExecution(JobExecution)
without callingJobRepository#deleteStepExecution(StepExecution)
firstExpected behavior
SimpleJobRepository.deleteJobExecution follows the API contract and deletes step executions and step execution contexts as well.
The text was updated successfully, but these errors were encountered: