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

Claus Ibsen resolved CAMEL-14642.
---------------------------------
    Resolution: Fixed

> camel-spring-boot - Using max duration and shutdown before should terminate 
> scheduled thread quicker
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-14642
>                 URL: https://issues.apache.org/jira/browse/CAMEL-14642
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-spring-boot
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 3.2.0
>
>
> 2020-03-02 08:39:57.590 INFO 2667 --- [ngupInterceptor] 
> o.a.c.i.engine.DefaultShutdownStrategy : Graceful shutdown of 1 routes 
> completed in 0 seconds
> 2020-03-02 08:39:59.598 INFO 2667 --- [ngupInterceptor] 
> o.a.c.i.e.BaseExecutorServiceManager : Waited 2.003 seconds for 
> ExecutorService: 
> org.apache.camel.util.concurrent.SizedScheduledExecutorService@6940f685[CamelSpringBootTerminateTask]
>  to terminate...
> 2020-03-02 08:40:01.604 INFO 2667 --- [ngupInterceptor] 
> o.a.c.i.e.BaseExecutorServiceManager : Waited 4.009 seconds for 
> ExecutorService: 
> org.apache.camel.util.concurrent.SizedScheduledExecutorService@6940f685[CamelSpringBootTerminateTask]
>  to terminate...
> 2020-03-02 08:40:03.605 INFO 2667 --- [ngupInterceptor] 
> o.a.c.i.e.BaseExecutorServiceManager : Waited 6.010 seconds for 
> ExecutorService: 
> org.apache.camel.util.concurrent.SizedScheduledExecutorService@6940f685[CamelSpringBootTerminateTask]
>  to terminate...
> 2020-03-02 08:40:05.606 INFO 2667 --- [ngupInterceptor] 
> o.a.c.i.e.BaseExecutorServiceManager : Waited 8.010 seconds for 
> ExecutorService: 
> org.apache.camel.util.concurrent.SizedScheduledExecutorService@6940f685[CamelSpringBootTerminateTask]
>  to terminate...
> 2020-03-02 08:40:07.601 INFO 2667 --- [ngupInterceptor] 
> o.a.c.i.e.BaseExecutorServiceManager : Waited 10.006 seconds for 
> ExecutorService: 
> org.apache.camel.util.concurrent.SizedScheduledExecutorService@6940f685[CamelSpringBootTerminateTask]
>  to terminate...
> 2020-03-02 08:40:07.602 WARN 2667 --- [ngupInterceptor] 
> o.a.c.i.e.BaseExecutorServiceManager : Forcing shutdown of ExecutorService: 
> org.apache.camel.util.concurrent.SizedScheduledExecutorService@6940f685[CamelSpringBootTerminateTask]
>  due first await termination elapsed.
> 2020-03-02 08:40:07.603 INFO 2667 --- [ngupInterceptor] 
> o.a.c.i.e.BaseExecutorServiceManager : Shutdown of ExecutorService: 
> org.apache.camel.util.concurrent.SizedScheduledExecutorService@6940f685[CamelSpringBootTerminateTask]
>  is shutdown: true and terminated: true took: 10.009 seconds.
> 2020-03-02 08:40:07.603 WARN 2667 --- [ngupInterceptor] 
> o.a.c.i.e.BaseExecutorServiceManager : Forced shutdown of 1 ExecutorService's 
> which has not been shutdown properly (acting as fail-safe)
> 2020-03-02 08:40:07.603 WARN 2667 --- [ngupInterceptor] 
> o.a.c.i.e.BaseExecutorServiceManager : forced -> 
> org.apache.camel.util.concurrent.SizedScheduledExecutorService@6940f685[CamelSpringBootTerminateTask]
> 2020-03-02 08:40:07.604 INFO 2667 --- [ngupInterceptor] 
> o.a.c.impl.engine.AbstractCamelContext : Apache Camel 3.2.0-SNAPSHOT 
> (CamelContext: PojoExample) uptime 12.024 seconds
> 2020-03-02 08:40:07.604 INFO 2667 --- [ngupInterceptor] 
> o.a.c.impl.engine.AbstractCamelContext : Apache Camel 3.2.0-SNAPSHOT 
> (CamelContext: PojoExample) is shutdown in 10.021 seconds
>  
>  
> Try the camel-example-spring-boot-pojo and terminate before 60 seconds via 
> ctrl + c and you see above



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

Reply via email to