camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-5555) In ScheduledRoutePolicy a suspended route cannot be started
Date Mon, 10 Sep 2012 14:58:07 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-5555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Willem Jiang resolved CAMEL-5555.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.10.2
                   2.11.0
                   2.9.4

Applied the patch into trunk, camel-2.9.x and camel-2.10.x branches.
                
> In ScheduledRoutePolicy a suspended route cannot be started
> -----------------------------------------------------------
>
>                 Key: CAMEL-5555
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5555
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-quartz
>    Affects Versions: 2.10.0
>            Reporter: Ashwin Pejavar
>            Assignee: Willem Jiang
>             Fix For: 2.9.4, 2.11.0, 2.10.2
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message