[ 
https://issues.apache.org/jira/browse/CAMEL-11922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16210726#comment-16210726
 ] 

ASF GitHub Bot commented on CAMEL-11922:
----------------------------------------

GitHub user igorko opened a pull request:

    https://github.com/apache/camel/pull/2049

    CAMEL-11922: Persistent tail tracking picks random tail tracker from …

    …mongoDB collection

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/igorko/camel camel-2.20.x

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/2049.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2049
    
----
commit 34b671575461bca64013af5d8f4ab5ff88e4e1ec
Author: Igor Paliychuk <[email protected]>
Date:   2017-10-19T08:30:33Z

    CAMEL-11922: Persistent tail tracking picks random tail tracker from 
mongoDB collection

----


> Persistent tail tracking picks random tail tracker from mongoDB collection
> --------------------------------------------------------------------------
>
>                 Key: CAMEL-11922
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11922
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-mongodb, camel-mongodb3
>    Affects Versions: 2.20.0
>            Reporter: Ihor Paliichuk
>             Fix For: 2.20.1, 2.21.0
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Hello. issue partially was fixed in 
> https://issues.apache.org/jira/browse/CAMEL-8063
> This was fixed in initialize() but still present in persistToStore() function
> Bson updateObj = Updates.set(config.field, lastVal);
> dbCol.updateOne(trackingObj, updateObj);
> trackingObj = dbCol.find().first();
> If more then one tracker is present in one collection, after storing lastVal, 
> each trackingObj will replaced by first one from collection. Should be
> trackingObj = dbCol.find(filter).first();
> Issue present in version 2.20 in both mongodb and mongodb3 component.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to