allthingssecurity commented on PR #30573:
URL: https://github.com/apache/camel/pull/30573#issuecomment-7076379896

   Thanks Claus, both done in 8184a29a2479.
   
   1. RouteStoppingException: `process()` on a stopped batch resequencer now 
throws `new RouteStoppingException("Resequencer is stopped: " + this)`, as you 
suggested. A new test, 
`testStoppedResequencerRejectsWithRouteStoppingException`, starts and stops a 
`Resequencer`, calls `process()` and checks the exception type, the message and 
the callback. A route-level test cannot reach the guard, because stopping the 
route stops the direct consumer first. The PR description now says 
`RouteStoppingException`. The upgrade guide needs no change: the 4.23 entry on 
`RouteStoppingException` already lists the Resequencer EIP, and on main this 
path failed with a `NullPointerException`, so there is nothing for users to 
migrate.
   
   2. Timeout: the route of the test class now uses `timeout(5000)`, and both 
restart tests wait up to 20 s for the batch. The first test had the same issue 
(if the timeout fired between its two sends, "2" would go out on its own), so 
it gets the same margin.
   
   The resequencer tests of camel-core (55) pass, and the new class with 
`BatchResequencerRestartTest` ran 20 times in one JVM: 120 runs, 0 failures.
   
   _Claude Code on behalf of allthingssecurity_
   


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