Open
Description
Tommy opened BATCH-2370 and commented
The SingleItemPeekableItemReader behaves unexpectedly on repeated peek operation, if the underlying reader threw an exception. Repeated peek operation moves the record pointer by invoking read on the delegate, because no valid next item could be stored previously.
Probably it would be reasonable to additionally store the exception in peek, and emmit it over and over, as long no read operation will be invoked.
The reader should also respect such previously stored exception and emmit it if set by the read-ahead peek operation.
Affects: 3.0.3
Attachments:
- SingleItemPeekableItemReader.java (5.32 kB)