Skip to content

RetryTemplate should officially expose RetryException to RetryListener.onRetryPolicyExhaustion() #35334

@sbrannen

Description

@sbrannen

As stated in the Javadoc for RetryListener.onRetryPolicyExhaustion(), the supplied Throwable should be:

the last exception thrown by the Retryable operation

However, RetryTemplate.execute() currently supplies the final, composite RetryException to RetryListener.onRetryPolicyExhaustion(), whose cause happens to be the last exception thrown by the Retryable operation.

Metadata

Metadata

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions