Croway commented on PR #30042:
URL: https://github.com/apache/camel/pull/30042#issuecomment-6899466039

   @davsclaus
   
   1. Done in 9e49416: `ActionTask` reads the exception (or `EXCEPTION_CAUGHT`) 
in its constructor on the calling thread, and `failAction` uses it. 
`ControlBusFailCurrentRouteTest` fails a timer route from its `onException` 
with pooled exchanges, and holds the control bus thread until the exchange is 
back in the pool: without the change the route is failed with the 
`RejectedExecutionException` instead of the caught exception.
   2. Done in 9e49416, with the route stack of the unit of work instead of the 
inflight repository: `browse(routeId)` returns nothing unless inflight browsing 
is enabled (off by default), and it filters on the from route id, so it does 
not see `mid`. `UnitOfWork.routeStackLevel(Predicate)` matches the routes the 
exchange is routed through, so `main -> mid -> sub` is detected, and a Split 
copy (own exchange id) has the route of the Split on its stack. New tests 
`testStopCallingRouteFromSubRoute` and `testStopRouteOfSplitFromSplitCopy` fail 
without it (the stop waits for the shutdown timeout). A copy does not see the 
routes before its EIP other than the from route; the controlbus page says to 
use `async=true` there.
   
   _Claude Code on behalf of Federico Mariani_
   


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to