-
Bug
-
Resolution: Done
-
Major
-
1.0.2.Final
-
None
When a skippable exception occurred in ItemWriter.writeItems(...), the item was not skipped. See related issue in javaee-sample project:
https://github.com/javaee-samples/javaee7-samples/issues/281
JBeret ChunkRunner class should be fixed to properly handle skip in ItemWriter:
(1) if there is only one item in the outputList, then clear it (and therefore skip it);
(2) else, we need to skip the one item that has caused skippable exception in ItemWriter, while still preserving other items in the same chunk or outputList. But there is no easy way to single it out, and the best option is just to rollback the current chunk and retry with item-count 1. During the subsequent retry, (1) will kick in.
- is related to
-
JBERET-124 During retry the last item of the previously failed chunk not retried with item-count 1
- Resolved