You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2011/09/02 11:48:09 UTC
[jira] [Updated] (CAMEL-4274) MDCUnitOfWork behaviour incorrect
with nested routes
[ https://issues.apache.org/jira/browse/CAMEL-4274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-4274:
-------------------------------
Fix Version/s: 2.8.1
> 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.8.1, 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