weixin_39572152 2020-11-29 22:33
浏览 0

exception in tasklet always makes the job crash, exception handler from StepConfiguration is ignored [BATCH-99]

Robert Kasanicky opened BATCH-99 and commented

exception thrown in tasklet's execute() method always makes the job crash, exception handler injected into StepConfiguration is ignored (never called).

Affects: 1.0-m2

Attachments: - sb99.patch (785 bytes)

2 votes, 1 watchers

该提问来源于开源项目:spring-projects/spring-batch

  • 写回答

5条回答 默认 最新

  • weixin_39572152 2020-11-29 22:33
    关注

    Lucas Ward commented

    I ran into this same issue the other day, if you look at the DefaultStepExecutorFactory, if the StepExecutor is a simple step executor and the configuration is not a RepeatOperationsHolder, then a new chunk operations will be injected by the Factory, overriding the existing one. I'm going to be looking at some of this logic and probably creating a new Factory over the next couple of days, so this logic might change. For now, you can use ChunkOperationsStepConfiguration to override chunkOperations in your RepeatTemplate.

    评论

报告相同问题?