-
Bug
-
Resolution: Done
-
Major
-
7.0.0.DR1
-
None
The two lines here: https://github.com/jberet/jsr352/blob/1.1.0.Final/jberet-core/src/main/java/org/jberet/runtime/runner/ChunkRunner.java#L196 close the ItemWriter and ItemReader after a chunk is processed.
However, it is in a try-finally block, and in the finally block, they are closed again: https://github.com/jberet/jsr352/blob/1.1.0.Final/jberet-core/src/main/java/org/jberet/runtime/runner/ChunkRunner.java#L236
In case the first attempt succeeded, the same writer and reader are closed twice.
- is cloned by
-
JBERET-165 ItemReaders and ItemWriters are closed twice
- Resolved