Closed
Description
I am working on a Project with Kotlin and Springboot and have run into an issue with the delayExpression
value in the @Backoff
annotation. It seems like starting at version 2.0.0
any value set will be ignored and instead the default delay of 1000ms will be used.
This is an exerpt from my code:
<dependency>
<groupId>org.springframework.retry</groupId>
<artifactId>spring-retry</artifactId>
<version>2.0.1</version>
</dependency>
@Retryable(
maxAttemptsExpression = "3",
backoff = Backoff(delayExpression = "100")
)
fun myRetryableFunction() {
//do something
}
As I said, instead of using a delay of 100ms, the default value of 1000ms is used. Simply downgrading the version to 1.3.4 or lower will fix this issue and the delayExpression will be used.