Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-14991

(7.1.z) JBERET-148 ChunkListener.onError() method not invoked before retry rollback

XMLWordPrintable

      8.2.1.4.4 Default Retry Behavior - Rollback

      When a retryable exception occurs the default behavior is for the batch runtime to rollback the current chunk and re-process it with an item-count of 1 and a checkpoint policy of item. If the optional ChunkListener is configured on the step, the onError method is called before rollback. The default retry behaviorcanbeoverriddenbyconfiguringtheno-rollback-exception-classeselement. Seesection 8.2.1.4.5 for more information on specifying no-rollback exceptions.
      ------------------
      ChunkListener.onError() method is currently not invoked for a retryable exception from reader.

      RetryReadListener.onRetryReadException() method is correctly invoked.

      On the other side, there is some overlapping between ChunkListener.onError() method and methods on various retry listeners. Especially when an application also configures retry listeners, ChunkListener.onError() becomes less important.

              spyrkob Bartosz Spyrko-Smietanko
              spyrkob Bartosz Spyrko-Smietanko
              Daniel Cihak Daniel Cihak
              Daniel Cihak Daniel Cihak
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: