camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] [Commented] (CAMEL-4042) Shutdown the thread pool when the test is over
Date Fri, 03 Jun 2011 15:19:48 GMT


Claus Ibsen commented on CAMEL-4042:

The thread pools is shutdown when the CamelContext is shutdown (eg you call stop on it). It
seems for me that the CamelContext may be re-used when running multiple tests in the same
unit test class.

The thread pools should only be shutdown when you shutdown Camel as you should be able to
stop a route etc. and then start it again, without having issues with thread pools not being
able to restart itself. When you have invoked shutdown on a thread pool, its dead forever.

> Shutdown the thread pool when the test is over
> ----------------------------------------------
>                 Key: CAMEL-4042
>                 URL:
>             Project: Camel
>          Issue Type: Improvement
>          Components: tests
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.8.0
> The thread size will keep increasing when we run the tests of camel.
> After digging the code for a while I found there are lots of thread pool are never shutdown
when the test is over.
> We should release these resources after running test.

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message