You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@batchee.apache.org by rm...@apache.org on 2014/12/09 10:47:21 UTC
incubator-batchee git commit: BATCHEE-56 open reader/writer errors
shouldn't call onerror in chunk listeners
Repository: incubator-batchee
Updated Branches:
refs/heads/master 1ea6089be -> fdd654324
BATCHEE-56 open reader/writer errors shouldn't call onerror in chunk listeners
Project: http://git-wip-us.apache.org/repos/asf/incubator-batchee/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-batchee/commit/fdd65432
Tree: http://git-wip-us.apache.org/repos/asf/incubator-batchee/tree/fdd65432
Diff: http://git-wip-us.apache.org/repos/asf/incubator-batchee/diff/fdd65432
Branch: refs/heads/master
Commit: fdd65432462810103918143ba193b3fa65b91339
Parents: 1ea6089
Author: Romain Manni-Bucau <rm...@apache.org>
Authored: Tue Dec 9 10:47:01 2014 +0100
Committer: Romain Manni-Bucau <rm...@apache.org>
Committed: Tue Dec 9 10:47:01 2014 +0100
----------------------------------------------------------------------
.../container/impl/controller/chunk/ChunkStepController.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-batchee/blob/fdd65432/jbatch/src/main/java/org/apache/batchee/container/impl/controller/chunk/ChunkStepController.java
----------------------------------------------------------------------
diff --git a/jbatch/src/main/java/org/apache/batchee/container/impl/controller/chunk/ChunkStepController.java b/jbatch/src/main/java/org/apache/batchee/container/impl/controller/chunk/ChunkStepController.java
index f4a2fa6..5c8b45d 100755
--- a/jbatch/src/main/java/org/apache/batchee/container/impl/controller/chunk/ChunkStepController.java
+++ b/jbatch/src/main/java/org/apache/batchee/container/impl/controller/chunk/ChunkStepController.java
@@ -514,7 +514,11 @@ public class ChunkStepController extends SingleThreadedStepController {
transactionManager.begin();
this.openReaderAndWriter();
transactionManager.commit();
-
+ } catch (final Exception e) {
+ rollback(e);
+ return;
+ }
+ try {
while (true) {
if (checkPointed || rollback) {