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

camel-blueprint - Camel route does not consider the value of ShutdownStrategy timeout.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.24.2, 3.0.0
    • Fix Version/s: 3.0.1, 2.25.0, 3.1.0
    • Component/s: camel-blueprint
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      In an OSGI context when Blueprint framework is used, if the shutdown strategy timeout is greater than one minute, the timeout is not effective.

      When the bundle is stopping, this is the call chain:

      BlueprintEventDispatcher (timeout 1 minute) --> BlueprintCamelContext.blueprintEvent --> BlueprintCamelContext.stop (timeout 5 minute by default)

      So when the Shutdown strategy timeout is longer than one minute, the BlueprintEventDispatcher timeout is triggered for first, making the shutdown strategy useless.

      The solution to this, is to remove the piece of code that handle the destroy event from BlueprintCamelContext.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ldemasi Luigi De Masi
                Reporter:
                ldemasi Luigi De Masi
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h