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

Claus Ibsen updated CAMEL-18137:
--------------------------------
    Fix Version/s: 3.18.0

> camel-mongodb - Cannot upsert in sharded collection
> ---------------------------------------------------
>
>                 Key: CAMEL-18137
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18137
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-mongodb
>            Reporter: Kanstantsin Ihnatsenka
>            Priority: Major
>             Fix For: 3.18.0
>
>
> According to official mongodb documentation sharded key should be specified 
> while upserting:
> https://www.mongodb.com/docs/manual/reference/method/db.collection.updateOne/
> {code:java}
> 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.{code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to