Uploaded image for project: 'JBeret'
  1. JBeret
  2. JBERET-148

ChunkListener.onError() method not invoked before retry rollback

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.3.0.Beta7, 1.2.5.Final
    • 1.0.0.Final, 1.2.4.Final, 1.3.0.Beta6
    • jberet-core
    • None

      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.

            cfang@redhat.com Cheng Fang
            cfang@redhat.com Cheng Fang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: