-
Bug
-
Resolution: Done
-
Major
-
1.1.0.Final
-
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.
- clones
-
JBEAP-125 ItemReaders and ItemWriters are closed twice
- Verified