[
https://issues.apache.org/jira/browse/CAMEL-13666?focusedWorklogId=264586&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-264586
]
ASF GitHub Bot logged work on CAMEL-13666:
------------------------------------------
Author: ASF GitHub Bot
Created on: 21/Jun/19 12:46
Start Date: 21/Jun/19 12:46
Worklog Time Spent: 10m
Work Description: aldettinger commented on pull request #2991:
CAMEL-13666: Fixed the autoStartup cancellation from route policy issue
URL: https://github.com/apache/camel/pull/2991
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 264586)
Time Spent: 20m (was: 10m)
> Route autoStartup cancellation from a RoutePolicy is not working properly in
> Camel 3
> ------------------------------------------------------------------------------------
>
> Key: CAMEL-13666
> URL: https://issues.apache.org/jira/browse/CAMEL-13666
> Project: Camel
> Issue Type: Bug
> Components: camel-core, camel-jgroups
> Affects Versions: 3.0.0-M3
> Reporter: Alex Dettinger
> Assignee: Alex Dettinger
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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|https://github.com/apache/camel/blob/master/core/camel-core/src/main/java/org/apache/camel/impl/cluster/ClusteredRoutePolicy.java#L171],
> but routes are actually started.
> *How to reproduce:*
> The test
> [JGroupsRaftClusteredRoutePolicyTest|https://github.com/apache/camel/blob/master/components/camel-jgroups-raft/src/test/java/org/apache/camel/component/jgroups/raft/cluster/JGroupsRaftClusteredRoutePolicyTest.java#L97]
> reproduces this issue when autoStartup(false) is not explicitly set in
> createRouteBuilder.
> The test
> [RoutePolicyAutoStartupCancelledOnInitTest|https://github.com/apache/camel/blob/master/core/camel-core/src/test/java/org/apache/camel/impl/RoutePolicyAutoStartupCancelledOnInitTest.java]
> is a small reproducer too.
> *Workaround:*
> Explicitly set autoStartup(false):
> {code:java}
> from(...).autoStartup(false)
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)