apupier commented on PR #30711:
URL: https://github.com/apache/camel/pull/30711#issuecomment-7137027220

   Addressed the 3 review findings on the latest commit:
   
   1. **Virtual thread permit admission retry**: In 
`SemanticEvaluateConsole.doCallJson`, when `exec.submit()` encounters a 
transient `RejectedExecutionException` (e.g. while the previous virtual thread 
is returning from `FutureTask.run()` and releasing the `BoundedExecutorService` 
permit), submission is retried until either submission succeeds or the request 
`deadline` is reached. If the deadline expires while awaiting permit admission, 
it throws `TimeoutException` (producing a timeout failure response) rather than 
a false `Busy` rejection. Additionally, if `task.get()` ever returns null, a 
fallback timeout failure response is returned.
   2. **Virtual thread regression test profile**: 
`virtualThreadSubmissionDoesNotBlockBeyondDeadline` in 
`SemanticEvaluationTimeoutTest` now passes `profile.getKeepAliveTime()`, 
`profile.getTimeUnit()`, and `profile.getRejectedPolicy()` directly to 
`BoundedExecutorService`, verifying the console's pool configuration. Removed 
FQCN usage.
   3. **Controlled execution order in worker deadline test**: In 
`workerStartingAfterDeadlineReturnsTimeoutResponse`, removed 
`Thread.sleep(100)` in favor of a `beforeExecute` latch and Awaitility deadline 
verification.
   
   _IBM Bob on behalf of apupier_


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