OPEN - issue BATCH-170: Concurrent modification of StepExecution when running an asynchrounous step operation
http://opensource.atlassian.com/projects/spring/browse/BATCH-170 Synchronized and added OptimisticLockingException to SqlStepDao. The parallel job now runs cleanly (tried it a few times).
This commit is contained in:
@@ -111,11 +111,11 @@ public class StepExecutionTests extends TestCase {
|
||||
|
||||
/**
|
||||
* Test method for
|
||||
* {@link org.springframework.batch.core.domain.StepExecution#incrementRollbackCount()}.
|
||||
* {@link org.springframework.batch.core.domain.StepExecution#rollback()}.
|
||||
*/
|
||||
public void testIncrementRollbackCount() {
|
||||
int before = execution.getRollbackCount().intValue();
|
||||
execution.incrementRollbackCount();
|
||||
execution.rollback();
|
||||
int after = execution.getRollbackCount().intValue();
|
||||
assertEquals(before + 1, after);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user