possible fix for BATCH-1980

This commit is contained in:
jpraet
2013-03-07 21:32:12 +01:00
parent 5a18183081
commit 38cbe621cf

View File

@@ -443,10 +443,8 @@ public class TaskletStep extends AbstractStep {
catch (Exception e) {
// If we get to here there was a problem saving the step
// execution and we have to fail.
String msg = "JobRepository failure forcing exit with unknown status";
String msg = "JobRepository failure forcing rollback";
logger.error(msg, e);
stepExecution.upgradeStatus(BatchStatus.UNKNOWN);
stepExecution.setTerminateOnly();
throw new FatalStepExecutionException(msg, e);
}
}