spring-batch
spring-batch copied to clipboard
Inheriting from parent step with skip-limit/retry-limit causes IllegalArgumentException when the inheriting bean doesn't define skip-limit [BATCH-1836]
Robin Krom opened BATCH-1836 and commented
Hello,
today I finally tried to update from 2.1.6 to 2.1.8 but with 2.1.8.RELEASE the issue reported in BATCH-1739 hasn't been resolved. Due to resolving policies it's hard to try snapshots from where I work, haven't been able to test 2.2.0
The exampleJob.xml in BATCH-1739 should help to test the issue...
Best wishes, Robin
Affects: 2.1.8
Reference URL: http://forum.springsource.org/showthread.php?t=108452
Robin Krom commented
The workaround suggested in BATCH-1739 still works but this is a lot of work and additionally makes our definitions really unreadable. I'm also uncertain about other issues in the inheritance.
Currently I am still staying at 2.1.6.RELEASE, because of this issue.
Dave Syer commented
I think the error message is misleading. If you specify a skip-limit in your child step it should work (that's what we do in the unit tests for this feature - see ParentSkippableStepFactoryBeanParserTests-context.xml). Is that a better workaround while we look into a fix for this new issue?
Can you retry this with the latest release of Spring Batch and report back to us the result? Thank you!