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/09 12:27:14 UTC
(camel) 02/05: CAMEL-20297 camel-controlbus: 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 33153f080a4bdb896248f1dc966062bd46471986
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Tue Jan 9 11:53:59 2024 +0000
CAMEL-20297 camel-controlbus: do not swallow interrupted exceptions
---
.../java/org/apache/camel/component/controlbus/ControlBusProducer.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/components/camel-controlbus/src/main/java/org/apache/camel/component/controlbus/ControlBusProducer.java b/components/camel-controlbus/src/main/java/org/apache/camel/component/controlbus/ControlBusProducer.java
index 9e7ce0508b4..9838263945a 100644
--- a/components/camel-controlbus/src/main/java/org/apache/camel/component/controlbus/ControlBusProducer.java
+++ b/components/camel-controlbus/src/main/java/org/apache/camel/component/controlbus/ControlBusProducer.java
@@ -191,7 +191,8 @@ public class ControlBusProducer extends DefaultAsyncProducer {
LOG.debug("Sleeping {} ms before starting route: {}", delay, id);
Thread.sleep(delay);
} catch (InterruptedException e) {
- // ignore
+ LOG.info("Interrupted while waiting before starting the route");
+ Thread.currentThread().interrupt();
}
}
getEndpoint().getCamelContext().getRouteController().startRoute(id);