apupier commented on PR #30711: URL: https://github.com/apache/camel/pull/30711#issuecomment-7159481502
Addressed the two minor points in `SemanticEvaluateConsole`: 1. **Local Executor Reference in `finally`**: Declared `ExecutorService exec` before the outer `try` block and used `exec` instead of `executor` in `finally` (`if (task instanceof Runnable r && exec instanceof ThreadPoolExecutor tpe) tpe.remove(r);`) for clarity and consistency across console lifecycles. 2. **Audit Outcome on Cancellation**: Recorded `audit.requestOutcome(request, "cancellation_requested")` in `catch (CancellationException)` and `catch (ExecutionException)` (`cause instanceof CancellationException`) to ensure all cancellation paths consistently log audit outcomes. _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]
