Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14642

camel-spring-boot - Using max duration and shutdown before should terminate scheduled thread quicker

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0
    • Component/s: camel-spring-boot
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              davsclaus Claus Ibsen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: