RedeliveryPolicy does not honor MaximumRedeliveryDelay
------------------------------------------------------
Key: CAMEL-3344
URL: https://issues.apache.org/activemq/browse/CAMEL-3344
Project: Apache Camel
Issue Type: Bug
Components: camel-core
Affects Versions: 2.5.0
Reporter: Lorrin Nelson
When using exponential retry back-off with a maximumRedeliveryDelay, the delay
is not honored.
The bug is in RedeliveryPolicy.java's calculateRedeliveryDelay method:
if (maximumRedeliveryDelay > 0 && redeliveryDelay >
maximumRedeliveryDelay) {
redeliveryDelayResult = maximumRedeliveryDelay;
}
redeliveryDelay is the initial delay and never increases, so the max is never
applied. It needs to compare against redeliveryDelayResult instead.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.