Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-12572

Camel route does not consider the value of DefaultShutdownStrategy.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • jboss-fuse-6.3
    • Camel
    • None
    • Medium
    • % %
    • ?
    • Hide

      On both 6.3.0 and 6.3 R10.

      1. Start fuse
      2. Modify the quickstart (/quickstarts/beginner/camel-log ) to add a sleep of 10 minutes

          <camelContext id="log-example-context" xmlns="http://camel.apache.org/schema/blueprint" >
              <route id="log-route">
                <from uri="timer:foo?period=5000"/>
                  <setBody>
                      <simple>Hello from Fabric based Camel route!</simple>
                  </setBody>
                 <delay>
      	       <constant>600000</constant>
      	   </delay>     
                  <log message=">>> ${body} : ${sys.runtime.id}"/>
              </route>
          </camelContext>
        

      3. Compile and Deploy the route

      4. From the bin directory, initiate the ./stop command

      Show
      On both 6.3.0 and 6.3 R10. 1. Start fuse 2. Modify the quickstart (/quickstarts/beginner/camel-log ) to add a sleep of 10 minutes <camelContext id= "log-example-context" xmlns= "http: //camel.apache.org/schema/blueprint" > <route id= "log-route" > <from uri= "timer:foo?period=5000" /> <setBody> <simple>Hello from Fabric based Camel route!</simple> </setBody> <delay> <constant>600000</constant> </delay> <log message= ">>> ${body} : ${sys.runtime.id}" /> </route> </camelContext> 3. Compile and Deploy the route 4. From the bin directory, initiate the ./stop command

      In Fuse 6.3 R10, if we initiate a graceful shutdown using the ./stop command, the route stops in 1 minute.

      The expectation is that the route should stop after 5 minutes as the default value of DefaultShutdownStrategy is 5 minutes.

      If we try the same steps in Fuse 6.3.0 then the route stops exactly after 5 minutes. Even if we increase the value of DefaultShutdownStrategy to 10 minutes in 6.3.0, this value is also respected and then the route stops after 10 minutes.

      Having said that on 6.3.0 fabric mode, the route stops in 1 minute.

      Considering, all the above points whats the expected behavior of camel route when we initiate a graceful shutdown, when there are inflight messages.

              ldemasi Luigi De Masi
              rhn-support-hnaram Herambh Naram (Inactive)
              Lucia Drozdova Lucia Drozdova (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: