[ 
https://issues.apache.org/jira/browse/CAMEL-3657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-3657.
--------------------------------

    Resolution: Fixed

trunk: 1069776.

> 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

        

Reply via email to