Uploaded image for project: 'FUSE Mediation Router'
  1. FUSE Mediation Router
  2. MR-921

Camel Timer component does not trigger with configured "period" after route restart

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.14.0.redhat-62-xx
    • 2.12.0.redhat-61379
    • None
    • None
    • Hide

      1. unzip the test case and rebuild it;
      2. start the test case by "mvn camel:run";
      3. start the route by opening a browser with URL "http://localhost:9393/start";
      4. stop the route using URL "http://localhost:9393/stop" and wait for the route to be shutdown after configured 30 seconds timeout;
      5. restart the route. The first trigger of event could take much longer in some cases.

      Show
      1. unzip the test case and rebuild it; 2. start the test case by "mvn camel:run"; 3. start the route by opening a browser with URL "http://localhost:9393/start"; 4. stop the route using URL "http://localhost:9393/stop" and wait for the route to be shutdown after configured 30 seconds timeout; 5. restart the route. The first trigger of event could take much longer in some cases.

      We have encountered an issue with the Camel timer. We have a bean that starts/stops the route where the timer is defined. It works pretty well while the route is shutdown successfully and no exchange is inflight.
      However, if the bean stops the route while the exchange is still inflight, Camel will wait 300 seconds.

      If, for some reasons, the exchange couldn’t be completed after 300 seconds, the DefaultShutdownStrategy will force a shutdown. Then the issue happens when the bean restarts the route.

      The timer is configured to trigger an event every 2 seconds. However, after restart, it sometimes waits much longer to trigger the first event. But all subsequent triggers would work fine.

      Please see attached test case for more detail.

            cibsen@redhat.com Claus Ibsen
            rhn-support-qluo Joe Luo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: