Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 71671 invoked from network); 11 Feb 2011 12:14:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Feb 2011 12:14:27 -0000 Received: (qmail 55442 invoked by uid 500); 11 Feb 2011 12:14:27 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 54048 invoked by uid 500); 11 Feb 2011 12:14:22 -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 52994 invoked by uid 99); 11 Feb 2011 12:14:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Feb 2011 12:14:20 +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, 11 Feb 2011 12:14:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 984AB19F23C for ; Fri, 11 Feb 2011 12:13:57 +0000 (UTC) Date: Fri, 11 Feb 2011 12:13:57 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: dev@camel.apache.org Message-ID: <2115377499.10376.1297426437620.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Created: (CAMEL-3657) Subtle test fails due multiple threads involved and visibility issues in mock endpoints 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 Subtle test fails due multiple threads involved and visibility issues in mock endpoints --------------------------------------------------------------------------------------- Key: CAMEL-3657 URL: https://issues.apache.org/jira/browse/CAMEL-3657 Project: Camel Issue Type: Task Components: camel-core, camel-hawtdb Affects Versions: 2.6.0 Reporter: Claus Ibsen Assignee: Claus Ibsen Fix For: 2.7.0 The test HawtDBAggregateRecoverDeadLetterChannelFailedTest may fail with a header missing. This seems really odd. And tracking this down to a thread visibility issue with the thread performing the assertion on the mock, and threads routing the messages in Camel. State on the mock should be volatile so changes is visible between the threads. Also optimize getHeader on Message to check for any headers first, avoiding the lazy create a Map, when really not needed. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira