ammachado commented on PR #31060:
URL: https://github.com/apache/camel/pull/31060#issuecomment-7236187756

   @davsclaus thanks for the review. All points are addressed in f56c604:
   
   - **[Important] global onCompletion no longer fires when the consumer route 
does not use it**: confirmed by running it, not only from the code. With the 
consumer on `routeConfigurationId("other")` calling a sub-route that uses the 
global configuration, the global `onCompletion` fired once before the fix and 
does not fire after it. I added your sentence to the 4.24 upgrade-guide entry.
   - **[Suggestion] test**: `testGlobalNotFiredWhenConsumerRouteDoesNotUseIt` 
in `RoutesConfigurationOnCompletionSetterTest` expects 0 on the global mock and 
1 on the `other` configuration's mock. It fails without the fix (`Expected: <0> 
but was: <1>`).
   - **[Nit] wording**: you are right, `testNamedWithIndirectConsumer` passes 
without the fix. The PR description now says so and keeps it as a regression 
guard.
   - **[Question] top-level onCompletion**: reproduced. With a top-level YAML 
`- onCompletion:` or a Spring `<camelContext><onCompletion>` over `direct:start 
-> direct:sub`, it fires twice. XML IO has no top-level `onCompletion`. Filed 
as [CAMEL-27754](https://issues.apache.org/jira/browse/CAMEL-27754) 
(unassigned) to keep this PR focused.
   - **Spring XML test**: added `SpringRoutesConfigurationOnCompletionTest` 
(global and named, through `routeConfigurationContext`). Both tests fail 
without the fix and pass with it, which backs up the "including Spring XML" 
line.
   - **fixVersion**: CAMEL-25420 is now 4.24.0.
   
   _Claude Code on behalf of Adriano Machado (@ammachado)_
   
   _This was generated by an AI agent and may contain inaccuracies. Please 
verify before relying on it._


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