You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/12/07 10:09:44 UTC

(camel) 06/15: CAMEL-20189: camel-ironmq: Force marking the consumer ready sooner, in case downloading big files takes too long, causing readiness check to timeout and fail.

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch ready
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 321956c84fcd38a4d7ff904a25c0ddf04424823f
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Dec 7 10:12:40 2023 +0100

    CAMEL-20189: camel-ironmq: Force marking the consumer ready sooner, in case downloading big files takes too long, causing readiness check to timeout and fail.
---
 .../main/java/org/apache/camel/component/ironmq/IronMQConsumer.java    | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/components/camel-ironmq/src/main/java/org/apache/camel/component/ironmq/IronMQConsumer.java b/components/camel-ironmq/src/main/java/org/apache/camel/component/ironmq/IronMQConsumer.java
index 6bad0e60fe5..a91fbb99ee7 100644
--- a/components/camel-ironmq/src/main/java/org/apache/camel/component/ironmq/IronMQConsumer.java
+++ b/components/camel-ironmq/src/main/java/org/apache/camel/component/ironmq/IronMQConsumer.java
@@ -79,6 +79,9 @@ public class IronMQConsumer extends ScheduledBatchPollingConsumer {
                     getEndpoint().getConfiguration().getWait());
             LOG.trace("Received {} messages", messages.getSize());
 
+            // okay we have some response from ironmq so lets mark the consumer as ready
+            forceConsumerAsReady();
+
             Queue<Exchange> exchanges = createExchanges(messages.getMessages());
             int noProcessed = processBatch(CastUtils.cast(exchanges));
             // delete all processed messages in one batch;