camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yaytay (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-4274) MDCUnitOfWork behaviour incorrect with nested routes
Date Wed, 27 Jul 2011 06:13:09 GMT
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
            Priority: Minor


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

        

Mime
View raw message