Dec 20th, 2012, 12:53 AM
Spring Batch Continues to Process even after exception is thrown
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 ?.
Dec 21st, 2012, 02:05 PM
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.