spring-batch
spring-batch copied to clipboard
Child doesn't merge 'retryableExceptionClasses' from parent [BATCH-1823]
Marten Deinum opened BATCH-1823 and commented
We have a batch job with a couple of steps which all share some listeners and should retry on the same exceptions. To make configuration easier (and to configure a BackOffPolicy) we created an abstract FaultTolerantStepFactoryBean which acts as a parent for most of our steps.
However we see a strange issue, the retry limit is taken from the parent, but the child overrides the retryableExceptionClasses and sets it to null, which then leads to an error. We now have on each step an empty retryable-exception-classes with merge="true" which solves it. But it would be nice that, if there is no element it would merge, for step listeners it is already working in that way (we have no listeners and the listeners from the parent remain).
Affects: 2.1.8
Thank you for opening the issue. Can you retry with Batch 5.x and see if the same behavior is exhibited?