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:36 UTC

(camel) 07/07: CAMEL-20297 camel-wal: 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 3c775345ab512679b1c6a32fe6d4b2d0543cf9de
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Jan 11 10:16:38 2024 +0100

    CAMEL-20297 camel-wal: do not swallow interrupted exceptions
---
 .../main/java/org/apache/camel/component/wal/DefaultLogSupervisor.java   | 1 +
 1 file changed, 1 insertion(+)

diff --git a/components/camel-wal/src/main/java/org/apache/camel/component/wal/DefaultLogSupervisor.java b/components/camel-wal/src/main/java/org/apache/camel/component/wal/DefaultLogSupervisor.java
index 3ca901d627e..50e71407129 100644
--- a/components/camel-wal/src/main/java/org/apache/camel/component/wal/DefaultLogSupervisor.java
+++ b/components/camel-wal/src/main/java/org/apache/camel/component/wal/DefaultLogSupervisor.java
@@ -68,6 +68,7 @@ public class DefaultLogSupervisor implements LogSupervisor {
             }
         } catch (InterruptedException e) {
             LOG.error("Failed to shutdown log flusher: {}", e.getMessage(), e);
+            Thread.currentThread().interrupt();
         }
     }
 }