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/12 16:24:52 UTC
(camel) 03/03: CAMEL-20297 camel-core-model: 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 65983ea120aec9a730a5cbe340d46f844e153b63
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Jan 12 10:57:59 2024 +0100
CAMEL-20297 camel-core-model: do not swallow interrupted exceptions
---
.../src/main/java/org/apache/camel/builder/NotifyBuilder.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/core/camel-core-model/src/main/java/org/apache/camel/builder/NotifyBuilder.java b/core/camel-core-model/src/main/java/org/apache/camel/builder/NotifyBuilder.java
index 04e1267623d..18dde9db1bd 100644
--- a/core/camel-core-model/src/main/java/org/apache/camel/builder/NotifyBuilder.java
+++ b/core/camel-core-model/src/main/java/org/apache/camel/builder/NotifyBuilder.java
@@ -1233,6 +1233,7 @@ public class NotifyBuilder {
LOG.warn("The notify builder latch has timed out. It's likely the condition has never been satisfied");
}
} catch (InterruptedException e) {
+ Thread.currentThread().interrupt();
throw RuntimeCamelException.wrapRuntimeCamelException(e);
}
return matches();