-
Dec 20th, 2012, 12:53 AM
#1
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,
-
Dec 21st, 2012, 02:05 PM
#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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules