camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-5079) Thread pools configured on EIPs should be shutdown and removed if possible when the route is removed
Date Tue, 13 Mar 2012 16:28:44 GMT

     [ 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

        

Mime
View raw message