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 (Resolved) (JIRA)" <ji...@apache.org> on 2012/03/13 17:28:44 UTC

[jira] [Resolved] (CAMEL-5079) Thread pools configured on EIPs should be shutdown and removed if possible when the route is removed

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

Claus Ibsen resolved CAMEL-5079.
--------------------------------

    Resolution: Fixed

There is a number of API changes on the processors in their constructors, to pass on details whether the thread pool should be shutdown when the processor is shutdown itself.

But now all the EIPs that uses thread pools can handle this, and will shutdown threads pools more eagerly if they are shutdown itself, such as from a route.
                
> Thread pools configured on EIPs should be shutdown and removed if possible when the route is removed
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5079
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5079
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.10.0
>
>
> Some EIPs such as the wire tap, aggregator, splitter, etc supports thread pools. A thread pool can either be
> a) use an existing thread pool
> b) a new thread pool based on a profile
> c) a new thread pool due parallel processing
> For b+c we should regard this as safe to shutdown and remove the thread pool when the routes is removed, as the thread pool was only used by this EIP.
> If its an existing thread pool, then Camel cannot handle the lifecycle, the end user is responsible for shutting down the pool when its no longer needed.
> See nabble
> http://camel.465427.n5.nabble.com/WireTap-threads-number-keeps-on-growing-tp5557827p5557827.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira