[
https://issues.apache.org/jira/browse/CAMEL-4274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-4274.
--------------------------------
Resolution: Fixed
Fix Version/s: 2.9.0
Assignee: Claus Ibsen
Thanks for the patch.
> MDCUnitOfWork behaviour incorrect with nested routes
> ----------------------------------------------------
>
> Key: CAMEL-4274
> URL: https://issues.apache.org/jira/browse/CAMEL-4274
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.8.0
> Reporter: Yaytay
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.9.0
>
> Attachments: Camel-MDC.patch
>
>
> MDCUnitOfWork.clear() removes any content set by MDCUnitOfWork from MDC.
> If there are two separate exchange running at the same time in the same
> thread, as happens when a ProduceTemplate is used from Java, this is
> incorrect because the MDC of the parent is cleared after the child completes.
> Conceptually the MDC should be a stack, but MDC only accepts strings so the
> simplest thing to do is for MDCUnitOfWork to replace the previous values in
> clear().
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira