You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2018/02/12 10:53:28 UTC

[camel] branch camel-2.20.x updated: CAMEL-11977: MongoDB Tailable cursor consumer fails to stop on shutdown

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

acosentino pushed a commit to branch camel-2.20.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-2.20.x by this push:
     new 8a9f533  CAMEL-11977: MongoDB Tailable cursor consumer fails to stop on shutdown
8a9f533 is described below

commit 8a9f5338229289e2ec4fd86a81bf1203a4eb61ad
Author: Igor Paliychuk <ma...@gmail.com>
AuthorDate: Mon Nov 13 13:53:58 2017 +0200

    CAMEL-11977: MongoDB Tailable cursor consumer fails to stop on shutdown
---
 .../java/org/apache/camel/component/mongodb/MongoDbTailingProcess.java  | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbTailingProcess.java b/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbTailingProcess.java
index 6192949..3030c2d 100644
--- a/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbTailingProcess.java
+++ b/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbTailingProcess.java
@@ -180,6 +180,8 @@ public class MongoDbTailingProcess implements Runnable {
             if (keepRunning) {
                 LOG.debug("Cursor not found exception from MongoDB, will regenerate cursor. This is normal behaviour with tailable cursors.", e);
             }
+        } catch (IllegalStateException e) {
+            // do nothing
         }
 
         // the loop finished, persist the lastValue just in case we are shutting down

-- 
To stop receiving notification emails like this one, please contact
acosentino@apache.org.