RESOLVED - issue BATCH-443: ItemOrientedStep might not either commit or rollback transaction
Needed to flush before attempting to update step execution, then catch and attempt rollback on CommitFailedException.
This commit is contained in:
@@ -572,7 +572,7 @@ public class ItemOrientedStepTests extends TestCase {
|
||||
|
||||
itemOrientedStep.setTransactionManager(new ResourcelessTransactionManager() {
|
||||
protected void doCommit(DefaultTransactionStatus status) throws TransactionException {
|
||||
// Simulate failure on rollback when stream resets
|
||||
// Simulate failure on commit
|
||||
throw new RuntimeException("Bar");
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user