You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2024/01/18 14:16:51 UTC
(camel) 05/06: CAMEL-20297 camel-management: do not swallow interrupted exceptions
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit f65d87e909a3fb762849638c2f354868820ce82a
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Tue Jan 16 11:02:06 2024 +0100
CAMEL-20297 camel-management: do not swallow interrupted exceptions
---
.../src/main/java/org/apache/camel/management/mbean/ManagedRoute.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/core/camel-management/src/main/java/org/apache/camel/management/mbean/ManagedRoute.java b/core/camel-management/src/main/java/org/apache/camel/management/mbean/ManagedRoute.java
index a7a0ec2f1b3..3cb8b1581f4 100644
--- a/core/camel-management/src/main/java/org/apache/camel/management/mbean/ManagedRoute.java
+++ b/core/camel-management/src/main/java/org/apache/camel/management/mbean/ManagedRoute.java
@@ -384,7 +384,8 @@ public class ManagedRoute extends ManagedPerformanceCounter implements TimerList
LOG.debug("Sleeping {} seconds before starting route: {}", delay, getRouteId());
Thread.sleep(delay * 1000);
} catch (InterruptedException e) {
- // ignore
+ LOG.info("Interrupted while waiting before starting the route");
+ Thread.currentThread().interrupt();
}
}
start();