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

camel-mongodb - Cannot upsert in sharded collection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.17.0
    • 3.18.0
    • camel-mongodb
    • None
    • Unknown

    Description

      According to official mongodb documentation sharded key should be specified while upserting:

      https://www.mongodb.com/docs/manual/reference/method/db.collection.updateOne/

      If you specify upsert: true on a sharded collection, you must include the full shard key in the filter. For additional db.collection.updateOne() behavior on a sharded collection, see Sharded Collections.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Ozymandy Kanstantsin Ihnatsenka
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: