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

   Thanks Claus. Done in 769afc8b2ce4:
   
   1. Upgrade guide: added "camel-resilience4j - a call that times out before 
it starts is not started later" to `camel-4x-upgrade-guide-4_24.adoc`. It says 
that in asynchronous mode `timeoutCancelRunningFuture` (default `true`) now has 
an effect, that a call that times out while queued no longer reaches the 
backend, that with a bulkhead the permit is released at the timeout and not 
when a thread takes the call, and that `timeoutCancelRunningFuture=false` keeps 
the old asynchronous behaviour (which 
`testAsyncQueuedTimedOutCallStartsWithoutCancelRunningFuture` shows).
   2. `ResilienceProcessor.java:712`: you are right, the comment only held with 
a bulkhead. It now reads "a call that timed out before it started is not 
started: `callStart.cancel()` claimed it on the timeout", which fits both cases.
   3. `ResilienceTimedOutQueuedCallTest`: the `atMost` and `get` waits are 20 
seconds now. The new class passes 10 of 10 runs, and the resilience4j unit 
tests pass (109 run).
   4. Your smaller point 2 (keep the `Future` of `submit` in `CallStart` and 
cancel it too, so the remove-on-cancel of the scheduled pool takes the task out 
of the queue) stays a follow-up, as mentioned in the description. I will open 
it once this one is in.
   


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