Announcement Announcement Module
Collapse
No announcement yet.
Spring Batch Continues to Process even after exception is thrown Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Batch Continues to Process even after exception is thrown

    Hi,
    I wanted to test in a multi-threaded setup , how will the batch behave if an exception is thrown. So I forcefully throw a RuntimeException in my code. But even after throwing the exception the step continues & rest of the threads continue to process the other records. How ever the status is updated as "FAILED". The log shows the exception as well. So my question is shouldn't have the step been stopped immediately after the exception is thrown ?.

    Regards,

  • #2
    Why stop all of the threads they are processing successfully? The way it currently is setup, as much data that can be processed in this run will be yet still allowing for restart.

    Comment

    Working...
    X