Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11922

Persistent tail tracking picks random tail tracker from mongoDB collection

    Details

    • 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

            Activity

              People

              • Assignee:
                acosentino Andrea Cosentino
                Reporter:
                Igorko Ihor Paliichuk
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2h
                  2h
                  Remaining:
                  Remaining Estimate - 2h
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified