camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-6220) Using route policy to start and stop routes can cause RouteContextProcessor to be added multiple times
Date Wed, 27 Mar 2013 16:47:15 GMT
Claus Ibsen created CAMEL-6220:
----------------------------------

             Summary: Using route policy to start and stop routes can cause RouteContextProcessor
to be added multiple times
                 Key: CAMEL-6220
                 URL: https://issues.apache.org/jira/browse/CAMEL-6220
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.10.4, 2.9.6
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
             Fix For: 2.9.7, 2.10.5, 2.11.0


For example using a quartz route policy to keep starting and stopping a route may lead to
unnecessary processors being wrapped.

A log snippet where we have wrapped 4 times
{code}
2013-03-27 17:43:10,004 [amel-1_Worker-4] DEBUG RouteService                   - Starting
child service on route: started-and-stopped-route -> RouteContextProcessor[RouteContextProcessor[RouteContextProcessor[RouteContextProcessor[RouteContextProcessor[RouteContextProcessor[Pipeline[[Channel[Log(started-and-stopped-route)[
${body}]], Channel[Wrap[org.apache.camel.routepolicy.quartz.StartStopCronRoutePolicyIssueTest$2@20091e0a]
-> org.apache.camel.routepolicy.quartz.StartStopCronRoutePolicyIssueTest$2@20091e0a]]]]]]]]]
2013-03-27 17:43:10,005 [amel-1_Worker-4] DEBUG RouteService                   - Starting
child service on route: started-and-stopped-route -> RouteContextProcessor[RouteContextProcessor[RouteContextProcessor[RouteContextProcessor[RouteContextProcessor[Pipeline[[Channel[Log(started-and-stopped-route)[
${body}]], Channel[Wrap[org.apache.camel.routepolicy.quartz.StartStopCronRoutePolicyIssueTest$2@20091e0a]
-> org.apache.camel.routepolicy.quartz.StartStopCronRoutePolicyIssueTest$2@20091e0a]]]]]]]]
2013-03-27 17:43:10,005 [amel-1_Worker-4] DEBUG RouteService                   - Starting
child service on route: started-and-stopped-route -> RouteContextProcessor[RouteContextProcessor[RouteContextProcessor[RouteContextProcessor[Pipeline[[Channel[Log(started-and-stopped-route)[
${body}]], Channel[Wrap[org.apache.camel.routepolicy.quartz.StartStopCronRoutePolicyIssueTest$2@20091e0a]
-> org.apache.camel.routepolicy.quartz.StartStopCronRoutePolicyIssueTest$2@20091e0a]]]]]]]
2013-03-27 17:43:10,006 [amel-1_Worker-4] DEBUG RouteService                   - Starting
child service on route: started-and-stopped-route -> RouteContextProcessor[RouteContextProcessor[RouteContextProcessor[Pipeline[[Channel[Log(started-and-stopped-route)[
${body}]], Channel[Wrap[org.apache.camel.routepolicy.quartz.StartStopCronRoutePolicyIssueTest$2@20091e0a]
-> org.apache.camel.routepolicy.quartz.StartStopCronRoutePolicyIssueTest$2@20091e0a]]]]]]
2013-03-27 17:43:10,007 [amel-1_Worker-4] DEBUG RouteService                   - Starting
child service on route: started-and-stopped-route -> RouteContextProcessor[RouteContextProcessor[Pipeline[[Channel[Log(started-and-stopped-route)[
${body}]], Channel[Wrap[org.apache.camel.routepolicy.quartz.StartStopCronRoutePolicyIssueTest$2@20091e0a]
-> org.apache.camel.routepolicy.quartz.StartStopCronRoutePolicyIssueTest$2@20091e0a]]]]]
2013-03-27 17:43:10,008 [amel-1_Worker-4] DEBUG RouteService                   - Starting
child service on route: started-and-stopped-route -> RouteContextProcessor[Pipeline[[Channel[Log(started-and-stopped-route)[
${body}]], Channel[Wrap[org.apache.camel.routepolicy.quartz.StartStopCronRoutePolicyIssueTest$2@20091e0a]
-> org.apache.camel.routepolicy.quartz.StartStopCronRoutePolicyIssueTest$2@20091e0a]]]]
{code}

--
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