allthingssecurity commented on code in PR #30305:
URL: https://github.com/apache/camel/pull/30305#discussion_r4610865592
##########
core/camel-core-processor/src/main/java/org/apache/camel/processor/MulticastProcessor.java:
##########
@@ -490,6 +495,20 @@ protected abstract class MulticastTask implements
Runnable, Rejectable {
} else {
this.completion = new AsyncCompletionService<>(transacted ?
txScheduler : scheduler, !isStreaming(), lock);
}
Review Comment:
Checked: `reject()` (MulticastProcessor.java:700) calls `doFailed`, which
goes through `markDone()` (:506) and so removes the task from `parallelTasks`.
Both places that catch the `RejectedExecutionException` end there: `doProcess`
calls `state.reject()` (:411), and `schedule` calls `rej.reject()` (:439). A
rejected task does not stay in the set.
_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]