A bug in StatefulRetryStepFactory?
After reading the documentation for the "StatefulRetryStepFactoryBean", I was under the impression that by using that step it would retry failed items as long as:
1) the number of retries did not exceed the "retryLimit" and
2) the thrown exceptions were an instance of "retryableExceptionClasses"
However, as long as the retry limit is set to a value greater than 0, it appears this class will always retry. For instance, using the test class "StatefulRetryStepFactoryBeanTests" and modifying the ItemReader to unconditionally throw an Exception causes the test to infinitely loop and never complete.
Am I misunderstanding how this class is used? Thanks for your help!