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 12:45:06 UTC
(camel) branch main updated: CAMEL-20297 camel-aws2-sqs: 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
The following commit(s) were added to refs/heads/main by this push:
new 519188fdc46 CAMEL-20297 camel-aws2-sqs: do not swallow interrupted exceptions
519188fdc46 is described below
commit 519188fdc46a3104d521afab29b193d2274a64ee
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Jan 11 10:01:21 2024 +0100
CAMEL-20297 camel-aws2-sqs: do not swallow interrupted exceptions
---
.../main/java/org/apache/camel/component/aws2/sqs/Sqs2Consumer.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/components/camel-aws/camel-aws2-sqs/src/main/java/org/apache/camel/component/aws2/sqs/Sqs2Consumer.java b/components/camel-aws/camel-aws2-sqs/src/main/java/org/apache/camel/component/aws2/sqs/Sqs2Consumer.java
index b6f31b371f5..1ff99a1a63f 100644
--- a/components/camel-aws/camel-aws2-sqs/src/main/java/org/apache/camel/component/aws2/sqs/Sqs2Consumer.java
+++ b/components/camel-aws/camel-aws2-sqs/src/main/java/org/apache/camel/component/aws2/sqs/Sqs2Consumer.java
@@ -139,6 +139,9 @@ public class Sqs2Consumer extends ScheduledBatchPollingConsumer {
try {
Thread.sleep(30000);
getEndpoint().createQueue(getClient());
+ } catch (InterruptedException e) {
+ LOG.warn("Interrupted while retrying queue connection.", e);
+ Thread.currentThread().interrupt();
} catch (Exception e) {
LOG.warn("failed to retry queue connection.", e);
}