Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 86597 invoked from network); 3 Mar 2010 21:56:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Mar 2010 21:56:13 -0000 Received: (qmail 94970 invoked by uid 500); 3 Mar 2010 21:56:05 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 94872 invoked by uid 500); 3 Mar 2010 21:56:05 -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 94864 invoked by uid 500); 3 Mar 2010 21:56:05 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 94861 invoked by uid 99); 3 Mar 2010 21:56:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Mar 2010 21:56:05 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Mar 2010 21:56:04 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9B589234C4BB for ; Wed, 3 Mar 2010 21:55:44 +0000 (UTC) Message-ID: <1011776654.4751267653344630.JavaMail.jira@brutus.apache.org> Date: Wed, 3 Mar 2010 21:55:44 +0000 (UTC) From: "Christian Schneider (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-2517) AggregateGroupedExchangeMultipleCorrelationTest fails In-Reply-To: <1418278630.3171267565864431.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/CAMEL-2517?page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D= 58007#action_58007 ]=20 Christian Schneider commented on CAMEL-2517: -------------------------------------------- Hi Claus, I am currently trying to understand the code in Aggregator. Though I can=C2= =B4t say I fully understand everything I stumbled over something interesti= ng. In line 488 there is the following command: timeoutMap =3D new AggregationTimeoutMap(scheduler, 1000L); Could this be the reason why my timeout of 1000ms caused the success? If I = understand this correctly the map only checks every 1000ms. So as the test = by default only delays the last exchange for 100ms it is not sure which gro= up times out first. When I lower the delay in line 488 to below 100ms the t= est works again. So I guess a valid fix could be to set the sleep to 1500ms= and the completionTimeout to 2000ms.=20 What do you think? Greetings Christian > AggregateGroupedExchangeMultipleCorrelationTest fails > ----------------------------------------------------- > > Key: CAMEL-2517 > URL: https://issues.apache.org/activemq/browse/CAMEL-2517 > Project: Apache Camel > Issue Type: Test > Components: camel-core > Affects Versions: 2.2.0 > Environment: Windows Vista > Reporter: Christian Schneider > Fix For: 2.3.0 > > Attachments: camel-core-2010-01-02.patch, failure_100ms.txt, succ= ess_1000ms.txt > > > On my system the test AggregateGroupedExchangeMultipleCorrelationTest fai= ls. It seems the Thread.sleep(100) is too short. > When I increase to at least 900ms it works. To add some safety I propose = to increase to 1000ms. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.