[ 
https://issues.apache.org/jira/browse/CAMEL-13776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Cosentino reassigned CAMEL-13776:
----------------------------------------

    Assignee: Andrea Cosentino

> [MongoDB] autoclosable cursor
> -----------------------------
>
>                 Key: CAMEL-13776
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13776
>             Project: Camel
>          Issue Type: Bug
>            Reporter: Pasquale Congiusti
>            Assignee: Andrea Cosentino
>            Priority: Major
>             Fix For: 3.0.0, 2.23.4, 2.24.2, 2.25.0, 3.0.0.M5
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> 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)

Reply via email to