http://jira.springframework.org/browse/BATCH-368 Split the save of a StepExecution into two parts at the JobRepository level, that way we can see if the failure was in saving context or just the step execution. Lots of exception handling and tests in step implementations.