From 6959c40158c34ad8bc1e9bc0be11eb92a2d8da2a Mon Sep 17 00:00:00 2001 From: robokaso Date: Thu, 20 Mar 2008 16:21:18 +0000 Subject: [PATCH] IN PROGRESS - issue BATCH-495: readers must not clear buffers on mark() http://jira.springframework.org/browse/BATCH-495 moved the initial itemHandler.mark() out of the loop --- .../springframework/batch/core/step/item/ItemOrientedStep.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/step/item/ItemOrientedStep.java b/spring-batch-core/src/main/java/org/springframework/batch/core/step/item/ItemOrientedStep.java index 403620b9c..d107e4922 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/step/item/ItemOrientedStep.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/step/item/ItemOrientedStep.java @@ -267,6 +267,7 @@ public class ItemOrientedStep extends AbstractStep { // reference to the ExecutionContext as the step execution. listener.beforeStep(stepExecution); stream.open(stepExecution.getExecutionContext()); + itemHandler.mark(); status = stepOperations.iterate(new RepeatCallback() { @@ -287,7 +288,6 @@ public class ItemOrientedStep extends AbstractStep { try { - itemHandler.mark(); result = processChunk(stepExecution, contribution); contribution.incrementCommitCount();