This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 35127324bd5b57c991ebfde71475f9d1727c8ad6 Author: Claus Ibsen <[email protected]> AuthorDate: Fri Jul 10 16:50:28 2026 +0200 chore: fix throughput/exchanges map leak in MetricsCollector removeVanished Co-Authored-By: Claude Opus 4.6 <[email protected]> Signed-off-by: Claus Ibsen <[email protected]> --- .../org/apache/camel/dsl/jbang/core/commands/tui/MetricsCollector.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/MetricsCollector.java b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/MetricsCollector.java index fe752fd47f42..8816bef0ca36 100644 --- a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/MetricsCollector.java +++ b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/MetricsCollector.java @@ -376,6 +376,8 @@ class MetricsCollector { void removeVanished(String pid) { throughputHistory.remove(pid); failedHistory.remove(pid); + throughputSamples.remove(pid); + previousExchangesTime.remove(pid); endpointInHistory.remove(pid); endpointOutHistory.remove(pid);
