You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/07/28 15:42:00 UTC

[jira] [Commented] (CAMEL-17889) camel.routeId removed from MDCs

    [ https://issues.apache.org/jira/browse/CAMEL-17889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17572525#comment-17572525 ] 

Claus Ibsen commented on CAMEL-17889:
-------------------------------------

MDC has change a bit, try with 3.18.0 or 3.19.0 as there was some work recently on MDC

> camel.routeId removed from MDCs
> -------------------------------
>
>                 Key: CAMEL-17889
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17889
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 3.14.2
>            Reporter: Roberto Rizzo
>            Priority: Minor
>
> If in a route I throw an exception, when Camel processes the onException camel.routeId is no longer present in the MDCs.
>  
> <route id="testMDC">
>     <from uri="timer://testMDCTimer?period=10000" />
>     <log loggingLevel="INFO" message="BeforeException" />
>     <throwException message="Test Exception" exceptionType="java.lang.IllegalArgumentException"/>
>     <onException>
>         <exception>java.lang.Exception</exception>
>         <handled><constant>true</constant></handled>
>         <log loggingLevel="INFO" message="onException" />
>     </onException>
> </route>



--
This message was sent by Atlassian Jira
(v8.20.10#820010)