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/11 16:55:32 UTC
(camel) 03/07: CAMEL-20297 camel-docker: 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 1bff2a22f5377f249dd043344db229c69daef6ea
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Jan 11 10:09:30 2024 +0100
CAMEL-20297 camel-docker: do not swallow interrupted exceptions
---
.../apache/camel/component/docker/producer/AsyncDockerProducer.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/components/camel-docker/src/main/java/org/apache/camel/component/docker/producer/AsyncDockerProducer.java b/components/camel-docker/src/main/java/org/apache/camel/component/docker/producer/AsyncDockerProducer.java
index e0ed670c3ed..2f652cfa2af 100644
--- a/components/camel-docker/src/main/java/org/apache/camel/component/docker/producer/AsyncDockerProducer.java
+++ b/components/camel-docker/src/main/java/org/apache/camel/component/docker/producer/AsyncDockerProducer.java
@@ -116,8 +116,10 @@ public class AsyncDockerProducer extends DefaultAsyncProducer {
default:
throw new DockerException("Invalid operation: " + operation);
}
-
- } catch (DockerException | InterruptedException e) {
+ } catch (InterruptedException e) {
+ LOG.error("Interrupted while processing", e);
+ Thread.currentThread().interrupt();
+ } catch (DockerException e) {
LOG.error(e.getMessage(), e);
}