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:53 UTC
(camel) 15/15: CAMEL-20189: camel-couchbase: Force marking the consumer ready sooner, in case processing exchanges 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 77c8ee58276a7131a5184642252f7680353f5e42
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Dec 7 11:08:36 2023 +0100
CAMEL-20189: camel-couchbase: Force marking the consumer ready sooner, in case processing exchanges takes too long, causing readiness check to timeout and fail.
---
.../java/org/apache/camel/component/couchbase/CouchbaseConsumer.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/components/camel-couchbase/src/main/java/org/apache/camel/component/couchbase/CouchbaseConsumer.java b/components/camel-couchbase/src/main/java/org/apache/camel/component/couchbase/CouchbaseConsumer.java
index af29bd51500..8b252244f4c 100644
--- a/components/camel-couchbase/src/main/java/org/apache/camel/component/couchbase/CouchbaseConsumer.java
+++ b/components/camel-couchbase/src/main/java/org/apache/camel/component/couchbase/CouchbaseConsumer.java
@@ -112,6 +112,9 @@ public class CouchbaseConsumer extends DefaultScheduledPollConsumer implements R
protected synchronized int poll() throws Exception {
ViewResult result = bucket.viewQuery(endpoint.getDesignDocumentName(), endpoint.getViewName(), this.viewOptions);
+ // okay we have some response from CouchBase so lets mark the consumer as ready
+ forceConsumerAsReady();
+
if (LOG.isTraceEnabled()) {
LOG.trace("ViewResponse = {}", result);
}