Kanstantsin Ihnatsenka created CAMEL-18137:
----------------------------------------------
Summary: 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
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)