Hi,
I have a Redeliver Policy defined as in the attached file 
http://camel.465427.n5.nabble.com/file/n3912880/RedeliveryPolicy.txt
RedeliveryPolicy.txt  :
I see that even though I have "maximumRedeliveryDelay" set to 1800000, 
I see the following message in the Log:

2011-03-17 15:47:56,014 [DefaultMessageListenerContainer-2] DEBUG
org.apache.camel.processor.RedeliveryPolicy - Sleeping for: 4860000 millis
until attempting redelivery

So, I looked through the source code for RedeliveryPolicy.java and found
that there's indeed a bug in:

method : calculateRedeliveryDelay(long previousDelay, int redeliveryCounter)

line # : 223 is
if (maximumRedeliveryDelay > 0 && redeliveryDelay > maximumRedeliveryDelay)

which should instead be:
if (maximumRedeliveryDelay > 0 && redeliveryDelayResult >
maximumRedeliveryDelay)

Please let me know if you need more information.
I have tested out this change in my local environment and it seems to be
working fine.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Maximum-Redelivery-Delay-not-working-in-Camel-2-5-0-tp3912880p3912880.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to