Pasquale Congiusti created CAMEL-13776: ------------------------------------------
Summary: [MongoDB] autoclosable cursor Key: CAMEL-13776 URL: https://issues.apache.org/jira/browse/CAMEL-13776 Project: Camel Issue Type: Bug Reporter: Pasquale Congiusti The [following statement|https://github.com/apache/camel/blob/master/components/camel-mongodb3/src/main/java/org/apache/camel/component/mongodb3/MongoDbTailingThread.java#L86] is not allowing the consumer to properly resume a previously stored tailing tracking. {code} try (MongoCursor<Document> iterator = dbCol.find(gt(tailTracking.getIncreasingFieldName(), lastVal)) {code} As the iterator is consumer outside that block, it is always impossible to recover any stopped tracking. The consumer test were infact previously @ignore-d for this reason. Already working to fix this problem. -- This message was sent by Atlassian JIRA (v7.6.14#76016)