Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 82987 invoked from network); 28 Dec 2010 02:32:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Dec 2010 02:32:11 -0000 Received: (qmail 18460 invoked by uid 500); 28 Dec 2010 02:32:11 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 18377 invoked by uid 500); 28 Dec 2010 02:32:10 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 18369 invoked by uid 500); 28 Dec 2010 02:32:09 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 18366 invoked by uid 99); 28 Dec 2010 02:32:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Dec 2010 02:32:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Dec 2010 02:32:07 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oBS2VkVw015234 for ; Tue, 28 Dec 2010 02:31:46 GMT Message-ID: <3478403.38691293503505997.JavaMail.jira@thor> Date: Mon, 27 Dec 2010 21:31:45 -0500 (EST) From: "Pablo Herrero (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Updated: (CAMEL-3344) RedeliveryPolicy does not honor MaximumRedeliveryDelay MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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.