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

Route autoStartup cancellation from a RoutePolicy is not working properly in Camel 3

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      It looks like route autoStartup cancellation from a route policy is not working properly with Camel 3.

      For instance, ClusteredRoutePolicy.onInit() is setting autoStartup to false, but routes are actually started.

      How to reproduce:

      The test JGroupsRaftClusteredRoutePolicyTest reproduces this issue when autoStartup(false) is not explicitly set in createRouteBuilder.

      The test RoutePolicyAutoStartupCancelledOnInitTest is a small reproducer too.

      Workaround:
      Explicitly set autoStartup(false):

      from(...).autoStartup(false)
      

      Attachments

        Issue Links

          Activity

            People

              aldettinger Alex Dettinger
              aldettinger Alex Dettinger
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 20m
                  20m