From 38cbe621cf02eea8abc100232392c8ba9cd820ba Mon Sep 17 00:00:00 2001 From: jpraet Date: Thu, 7 Mar 2013 21:32:12 +0100 Subject: [PATCH] possible fix for BATCH-1980 --- .../springframework/batch/core/step/tasklet/TaskletStep.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java b/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java index 8b98f9fe4..f0d2a4cea 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java @@ -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); } }