camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Created: (CAMEL-3657) Subtle test fails due multiple threads involved and visibility issues in mock endpoints
Date Fri, 11 Feb 2011 12:13:57 GMT
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

        

Mime
View raw message