
Originally Posted by
Dave Syer
4) sounds about right. Your concerns are valid, but it should be fine for any normal failure scenario. The only way it can break is a true lights out or "kill -9" of the database or the job lancher, because in this case the semantics for Spring Batch 1.x are not well defined. The intermediate state should be OK up to the last commit point, so manually changing the StepExecution in the database to status=FAILED and restarting produces a happy outcome. Spring Batch 2.0 has some features to deal with this in the API.