Browse Source
In RetryTemplate, if we encounter an InterruptedException while sleeping for the configured back-off duration, we throw a RetryException with the InterruptedException as the cause. However, in contrast to the specification for RetryException, we do not currently include the exceptions for previous retry attempts as suppressed exceptions in the RetryException which is thrown in such scenarios. In order to comply with the documented contract for RetryException, this commit includes exceptions for previous attempts in the RetryException thrown for an InterruptedException as well. Closes gh-35434pull/35447/head
2 changed files with 21 additions and 6 deletions
Loading…
Reference in new issue