Announcement Announcement Module
Collapse
No announcement yet.
Infinite loop in RepeatTemplate when exception is thrown in a SkipListener Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Infinite loop in RepeatTemplate when exception is thrown in a SkipListener

    We have test cases where we throw some non-ignorable exception in a processor.
    After that, we receive a callback in an instance of SkipListener we created. When an exception is thrown in that SkipListener (for some reason, programming error, database down,...) an infinite loop occur in the RetryTemplate class.
    That behavior does not occur in all our jobs, just in some of them (I'm still investigating to isolate the configuration option that makes the bug occur).

    By debugging, I've seen that in the class FaultTolerantChunkProcessor, the skipCount in the instance of StepContribution is never incremented, it stays 0. What do you think could cause that behavior?
    Last edited by Nicolas Vanhoren; Mar 9th, 2010, 07:21 AM.

  • #2
    SkipListeners are not allowed to throw exceptions. If they do it should be a fatal error for the Job, so if you are using Spring Batch 2.1.0 can you open a JIRA? Otherwise can you upgrade and try again?

    Comment


    • #3
      Yes, we are using SB 2.1.0. I created a ticket: http://jira.springframework.org/browse/BATCH-1529 (by the way, I made a mistake, the exception is thrown in an exception listener, not a skip listener).

      Comment

      Working...
      X