[
https://issues.apache.org/jira/browse/CAMEL-24995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen reassigned CAMEL-24995:
-----------------------------------
Assignee: Claus Ibsen
> camel-core - Wire Tap EIP: a graceful shutdown does not wait for the tapped
> exchanges queued in the thread pool
> ---------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-24995
> URL: https://issues.apache.org/jira/browse/CAMEL-24995
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
>
> A deep review of the Wire Tap, OnCompletion, Threads, Delay and Resequence
> EIPs found the bug below in the Wire Tap EIP. It was reproduced against
> 4.23.0-SNAPSHOT.
> *A graceful shutdown does not wait for tapped exchanges that are queued in
> the wire tap thread pool.* WireTapProcessor reports its pending exchanges to
> the shutdown strategy (ShutdownAware.getPendingExchangesSize), but it only
> counted a tapped exchange once its task started running. Tapped exchanges
> waiting in the thread pool queue were not counted. So a graceful shutdown did
> not wait for them, and the thread pool was then shut down with the tapped
> messages still in its queue. They are now counted from when they are
> submitted, and the count goes down again if the thread pool rejects the task.
> _Claude Code on behalf of Claus Ibsen_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)