You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Minal Bhalodi (Jira)" <ji...@apache.org> on 2020/09/22 17:28:00 UTC

[jira] [Updated] (CAMEL-15568) Dynamic route updates causes few requests to fails

     [ https://issues.apache.org/jira/browse/CAMEL-15568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Minal Bhalodi updated CAMEL-15568:
----------------------------------
    Description: 
We are using Apache Camel 3.2.0. We update camel routes at runtime using below code. 

ModelCamelContext mcc = camelContext.adapt(ModelCamelContext.class);
mcc.addRouteDefinitions({{workflowDefinitionsList}}); {{// workflowDefinitionsList is the list of XML routes}}

 

*Problem Statement*: Dynamic routes updates causes few requests to fail at runtime. When these routes are being updated, we also serve requests using those routes from same CamelContext and few Requests fails.

Since there can be only one CamelContext per Application, I am not sure how can I resolve this issue.

My application’s code to update routes at runtime: Here we can see that to add/update routes, these code first delete all routes and then add them back. These affects the live traffic and requests fails.:

 

 

  was:
we use Persistent Custom MDC Logging in Apache Camel as mentioned in this link.
h1. [https://developers.redhat.com/blog/2016/05/12/persistent-custom-mdc-logging-in-apache-camel/]

 

After we upgrade Apache Camel version from 2.25.0 to 3.2.0 , we started seeing issue of thread is being hold for 30-40 ms when calling CustomUnitOFWork which internally call MDCUnitOfWork. 

 

What we noticed is thread hold time is keep on increasing every hour and not able to understand this issue. 


> Dynamic route updates causes few requests to fails
> --------------------------------------------------
>
>                 Key: CAMEL-15568
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15568
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 3.2.0
>            Reporter: Minal Bhalodi
>            Priority: Minor
>
> We are using Apache Camel 3.2.0. We update camel routes at runtime using below code. 
> ModelCamelContext mcc = camelContext.adapt(ModelCamelContext.class);
> mcc.addRouteDefinitions({{workflowDefinitionsList}}); {{// workflowDefinitionsList is the list of XML routes}}
>  
> *Problem Statement*: Dynamic routes updates causes few requests to fail at runtime. When these routes are being updated, we also serve requests using those routes from same CamelContext and few Requests fails.
> Since there can be only one CamelContext per Application, I am not sure how can I resolve this issue.
> My application’s code to update routes at runtime: Here we can see that to add/update routes, these code first delete all routes and then add them back. These affects the live traffic and requests fails.:
>  
>  



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