This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-3.14.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.14.x by this push:
new f2feeee CAMEL-17588: Reactive executor should clean thread local on
shutdown.
f2feeee is described below
commit f2feeeeda98c45d53a02b746a07447eb93fd1a15
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Feb 2 18:57:18 2022 +0100
CAMEL-17588: Reactive executor should clean thread local on shutdown.
---
.../java/org/apache/camel/impl/engine/DefaultReactiveExecutor.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git
a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultReactiveExecutor.java
b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultReactiveExecutor.java
index 6ac6e2f..b9ef7e3 100644
---
a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultReactiveExecutor.java
+++
b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultReactiveExecutor.java
@@ -122,6 +122,12 @@ public class DefaultReactiveExecutor extends
ServiceSupport implements ReactiveE
}
}
+ @Override
+ protected void doShutdown() throws Exception {
+ // cleanup workers
+ workers.remove();
+ }
+
private static class Worker {
private final int number;