Details
-
Task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.6.0
-
None
Description
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.