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 2020/12/16 13:50:00 UTC

[jira] [Commented] (CAMEL-15957) Exception in async producer and MDC context

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

Claus Ibsen commented on CAMEL-15957:
-------------------------------------

MDC is not a very good practice, especially the more reactive systems become.

> Exception in async producer and MDC context
> -------------------------------------------
>
>                 Key: CAMEL-15957
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15957
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 3.4.0
>            Reporter: Shmakov Alexey
>            Priority: Minor
>
> If an exception occurs in the asynchronous producer, the MDC context is not refreshed and MDC logging breaks. This situation occurs when the onException block is processed in another thread, for example, if the external http-server returned an error code when connecting through a ahc/cxf component or a read timeout occurred



--
This message was sent by Atlassian Jira
(v8.3.4#803005)