camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lorrin Nelson (JIRA)" <j...@apache.org>
Subject [jira] Created: (CAMEL-3344) RedeliveryPolicy does not honor MaximumRedeliveryDelay
Date Thu, 18 Nov 2010 05:49:24 GMT
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.


Mime
View raw message