An exception in an ItemWriter#close
method is not causing the exit status to be marked as FAILED. Can you confirm that is the expected behavior ?
According to my understanding, when ItemWriter#close
method is called, the items must have been processed successfully.
We encountered no errors during the phase of reader, processor or writer.
As as result, the exit status is marked as COMPLETED.
In other words, ItemWriter#close
method is only useful for clean up of resources and does not impact the results of the step.
Do you agree with my explanation ? Can you confirm ?
Thank you in advance for your answers.