Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.20.0
-
Component/s: camel-mongodb, camel-mongodb3
-
Labels:None
-
Estimated Complexity:Novice
Description
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.
Attachments
Issue Links
- links to