spring-batch
spring-batch copied to clipboard
Ordering of ChunkListeners does not work in 2.1.9 due to new TerminateOnExceptionChunkListenerDelegate [BATCH-1991]
Tobias Flohre opened BATCH-1991 and commented
In Spring Batch 2.1.9 a TerminateOnExceptionChunkListenerDelegate was introduced in the FaultTolerantStepFactoryBean. Every ChunkListener now gets wrapped into that Delegate. Unfortunately the ordering information is lost then, because the Delegate of course never implements the Ordered interface, no matter if the underlying ChunkListener implements Ordered or not. The CompositeChunkListener checks on the Delegates.
Affects: 2.1.9
Thank you for opening the issue. Can you retry with the latest release of Spring Batch(5.0.2) and report back the results?
If the issue is still present, Can you provide a sample project that uses the latest release of Spring Batch and that exhibits the behavior? To help you in reporting your issue, we have prepared a project template that you can use as a starting point. Please check the Issue Reporting Guidelines for more details about this.