You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Pasquale Congiusti (JIRA)" <ji...@apache.org> on 2019/07/22 08:27:00 UTC
[jira] [Created] (CAMEL-13776) [MongoDB] autoclosable cursor
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)