Solution for this scenario - commit interval is 10, skip limit is 10, Total Input Record is 20, First 9 records valid, remaining invalid.
When 9 records are already read, the 10th one is invalid. The chunk size is 10 and skip limit is 10, so will Spring batch write those 9 records in output file? If not, if it goes on reading remaining records, when it reads 20th record, count of the error record will be 11 and skip limit defined is 10. So the process will stop immediately. What about the fate of valid records read first.
Will the first 9 records be written in output file or not.
Please let me know, if any solution available. Thanks!