[
https://issues.apache.org/jira/browse/CAMEL-26985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Work on CAMEL-26985 started by Federico Mariani.
------------------------------------------------
> camel-controlbus: stopping the route that routes the exchange waits for the
> shutdown timeout
> --------------------------------------------------------------------------------------------
>
> Key: CAMEL-26985
> URL: https://issues.apache.org/jira/browse/CAMEL-26985
> Project: Camel
> Issue Type: Bug
> Components: camel-controlbus
> Affects Versions: 4.18.5, 4.22.2, 4.23.0
> Reporter: Federico Mariani
> Assignee: Federico Mariani
> Priority: Minor
> Fix For: 4.24.0
>
>
> A {{controlbus:route}} stop of the route that is routing the exchange
> ({{routeId=current}}, or the route the exchange came from through {{direct}})
> runs on the routing thread. The graceful stop waits for that same exchange,
> so the step blocks until the shutdown timeout (45 s by default) and then
> forces the stop. On 4.23 the exchange then fails with
> {{RouteStoppingException}} and the steps after the controlbus never run. The
> suspend, restart and fail actions do the same; only {{async=true}} avoids it.
> {code:java}
> from("direct:start").routeId("start")
> .to("controlbus:route?routeId=current&action=stop")
> .to("mock:after"); // returns after the shutdown timeout, mock:after gets
> nothing
> {code}
> Expected: a stop of the route of the exchange runs on another thread, as with
> {{async=true}}: the exchange completes, and the route stops once it is done.
> _Claude Code on behalf of Federico Mariani_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)