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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.24.2, 3.0.0
    • 3.0.1, 2.25.0, 3.1.0
    • camel-blueprint
    • None
    • 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

              jbonofre Jean-Baptiste Onofré
              ldemasi Luigi De Masi
              Votes:
              0 Vote for this issue
              Watchers:
              4 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