Configuring a chunk with an ItemWriteListener I expect a call to the 'onWriteError' every time an exception is thrown from the writer. This does not seem to be the case when the writer runs in "recoverer". The consequence being that if logging is done in the 'onWriteError', only the error causing the chunk to fail will be logged, not any errors occurring when the writer handles items one by one.
Our solution was to introduce a processor and an ItemProcessListener, where the call to the service is done in the processor and logging is put in 'onProcessError'.
I would suggest to fix this, or make it clear in the javadoc for ItemWriteListener how it works regarding writer running in "recoverer".
This issue is illustrated with unittests in the attached exampleproject.