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] [Commented] (CAMEL-11588) SupervisingRouteController - Routes may be started in wrong order
Date Sun, 23 Jul 2017 18:30:00 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-11588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16097747#comment-16097747
] 

Claus Ibsen commented on CAMEL-11588:
-------------------------------------

I looked briefly at this and its a bit harder to do. So its okay for this to be a known issue,
but down the road we should ideally have this new way of starting up routes support all existing
ways, so it in the future can be the new default way.

> SupervisingRouteController - Routes may be started in wrong order
> -----------------------------------------------------------------
>
>                 Key: CAMEL-11588
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11588
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Luca Burgazzoli
>             Fix For: 2.20.0
>
>
> If you run the example and turn off the supervising
> Then the routes are started correct order
> {code}
> 2017-07-23 10:40:37.825  INFO 33034 --- [           main] o.a.camel.spring.SpringCamelContext
     : Route: bar started and consuming from: timer://bar?period=5s
> 2017-07-23 10:40:37.825  INFO 33034 --- [           main] o.a.camel.spring.SpringCamelContext
     : Route: foo started and consuming from: timer://foo?period=5s
> 2017-07-23 10:40:37.830  INFO 33034 --- [           main] o.a.c.c.undertow.DefaultUndertowHost
    : Starting Undertow server on http://localhost:9011
> 2017-07-23 10:40:37.877  INFO 33034 --- [           main] o.a.camel.spring.SpringCamelContext
     : Route: undertow started and consuming from: http://localhost:9011
> {code}
> eg with lowest startup order first, 1,2, (no number).
> But if you turn on supervising, then they are started: (no number), 1, 2
> {code}
> 2017-07-23 10:37:39.266  INFO 32985 --- [           main] o.a.c.c.undertow.DefaultUndertowHost
    : Starting Undertow server on http://localhost:9011
> 2017-07-23 10:37:39.311  INFO 32985 --- [           main] o.a.camel.spring.SpringCamelContext
     : Route: undertow started and consuming from: http://localhost:9011
> 2017-07-23 10:37:39.313  INFO 32985 --- [           main] o.a.camel.spring.SpringCamelContext
     : Route: bar started and consuming from: timer://bar?period=5s
> 2017-07-23 10:37:39.314  INFO 32985 --- [           main] o.a.camel.spring.SpringCamelContext
     : Route: foo started and consuming from: timer://foo?period=5s
> {code}
> eg the undertow route is the (no number) and should therefore be started last (it will
have auto assigned number 1001).
> eg we need to use the RouteStartupOrder that can tell the correct order.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message