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

DefaultShutdownStrategy shutdown timeout of 0 will never timeout and go in negative time

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.11.0
    • Fix Version/s: 2.10.5, 2.11.1, 2.12.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Novice

      Description

      A timeout of 0 won't timeout in the instant, the time will go negative.

      camelcontext.stopRoute(routeId, 0, TimeUnit.SECONDS, false);

      [org.apache.camel.impl.DefaultShutdownStrategy] : Waiting as there are still 3 inflight and pending exchanges to complete, timeout in -1 seconds.
      [org.apache.camel.impl.DefaultShutdownStrategy] : Waiting as there are still 3 inflight and pending exchanges to complete, timeout in -2 seconds.
      [org.apache.camel.impl.DefaultShutdownStrategy] : Waiting as there are still 3 inflight and pending exchanges to complete, timeout in -3 seconds.

      Found a post related to it there : http://camel.465427.n5.nabble.com/Forcefully-shutting-down-routes-td5722447.html

        Attachments

        1. shutdownStrategy8may2013.patch
          27 kB
          Luc Leclerc

          Issue Links

            Activity

              People

              • Assignee:
                njiang Willem Jiang
                Reporter:
                lleclerc Luc Leclerc
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: