Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ADF5C96E3 for ; Fri, 9 Mar 2012 19:25:25 +0000 (UTC) Received: (qmail 70974 invoked by uid 500); 9 Mar 2012 19:25:23 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 70942 invoked by uid 500); 9 Mar 2012 19:25:23 -0000 Mailing-List: contact issues-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 issues@camel.apache.org Received: (qmail 70845 invoked by uid 99); 9 Mar 2012 19:25:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 19:25:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 19:25:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 09234100CA for ; Fri, 9 Mar 2012 19:25:00 +0000 (UTC) Date: Fri, 9 Mar 2012 19:25:00 +0000 (UTC) From: "Ashwin Karpe (Work stopped) (JIRA)" To: issues@camel.apache.org Message-ID: <557933135.44937.1331321100038.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <955858513.39253.1331225397539.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Work stopped] (CAMEL-5070) Message Loss when using Weighted Round Robin LoadBalancer 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-5070?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Work on CAMEL-5070 stopped by Ashwin Karpe. > Message Loss when using Weighted Round Robin LoadBalancer > --------------------------------------------------------- > > Key: CAMEL-5070 > URL: https://issues.apache.org/jira/browse/CAMEL-5070 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.9.1 > Reporter: Nikolaos Dimos > Assignee: Ashwin Karpe > Attachments: loadbalancer-itest.zip > > > chooseProcessor method accesses resources in a non synchronized fashion. This leads in errors during loadbalancing and as a result messages are lost. I have created a project that provides an integration test (using karaf 2.2.5 and a custom command to check messages of the activemq broker) with a custom weighted round robin loadbalancer that "seems" to solve the issue of lost messages. > > The problem with the provided solution is that when messages are dequeued from the second stage of queues (queues1, 2 and 3) in custom-loadbalancer-route subproject the jmsconsumer threads also block (checked this using profiler). I would expect only the jmsconsumer threads of the first queue (initial.queue) to block waiting for the synchronized chooseProcessor method. Any clues on why this happens? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira