camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pablo Herrero (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CAMEL-3344) RedeliveryPolicy does not honor MaximumRedeliveryDelay
Date Tue, 28 Dec 2010 02:31:45 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-3344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pablo Herrero updated CAMEL-3344:
---------------------------------

    Attachment: RedeliveryPolicyMaxDelayTest.java

I ran into this issue too (just now, so I searched the JIRA queue to avoid duplicating this
report). I'm attaching the unit test I wrote for it.

> RedeliveryPolicy does not honor MaximumRedeliveryDelay
> ------------------------------------------------------
>
>                 Key: CAMEL-3344
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3344
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.5.0
>            Reporter: Lorrin Nelson
>            Assignee: Claus Ibsen
>             Fix For: 2.6.0
>
>         Attachments: RedeliveryPolicyMaxDelayTest.java
>
>
> 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