You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Noticed that in the ExponentialBackOffContext when we are calling getSleepAndIncrement sleep value resolved from intervalSupplier if it is not null. But further when we resolving getNextInterval, we assigning it to the interval instead of intervalSupplier and interval keep it initial value for the next iteration.
public synchronized long getSleepAndIncrement() {
long sleep = getInterval();
long max = getMaxInterval();
if (sleep > max) {
sleep = max;
}
else {
this.interval = getNextInterval();
}
return sleep;
}
Hi,
I tried to use the
@Retryable
annotation in spring boot with a configurable delay and exponential backoff. This is how I tried it:The
maxAttemptsExpression
anddelayExpression
are actually filled with environment variables via"${...}"
Expected: exponential delay as described in the documentation
Actual: constant delay of 600ms
When I change it to
delay = 600
then it's working as expected. I checked it with spring-retry 2.0.4Thanks for having a look!
Regards, Michael
The text was updated successfully, but these errors were encountered: