Skip to content

Log RetryException for @Retryable methods #35983

@sbrannen

Description

@sbrannen

In AbstractRetryInterceptor we currently catch a RetryException and throw its cause. Consequently, the user has no way to access the actual RetryException, which may contain a meaningful error message as well as exceptions from previous attempts as suppressed exceptions.

To improve diagnostics, we should at least log a RetryException thrown by RetryTemplate when it's used behind the scenes for @Retryable method invocations.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions