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

In ScheduledRoutePolicy a suspended route cannot be started

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.10.0
    • Fix Version/s: 2.9.4, 2.10.2, 2.11.0
    • Component/s: camel-quartz
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      If a route is suspended using the ScheduledRoutePolicy and its subclasses (CronScheduledRoutePolicy), it cannot be resumed or started.

      Looking at the code in ScheduledRoutePolicy.onJobExecute(), on start/resume actions, the route status is first checked and must be stopped or suspended before any actions is taken.

      Suspension of a route, only suspends the consumer and not the route, and hence the start/resume after a suspend does nothing.

      One solution could be to also check the status of the consumer on start/resume. This would require adding a isSuspended() to serviceHelper and should be relatively straightforward.

        Attachments

          Activity

            People

            • Assignee:
              njiang Willem Jiang
              Reporter:
              apejavar Ashwin Pejavar
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: