Details
-
Bug
-
Resolution: Duplicate
-
Major - P3
-
None
-
2.6.5
-
None
-
ALL
-
Description
We have a sharded collection with shard key: { _id : "hashed"}.
An update with upsert true fails with
"does not contain shard key for pattern { _id: "hashed" }".
|
This only happens on sharded collections + upsert: true + _id: { $in: [ 2, 3 ] } query.
if the query is not an in query or upsert is false it works.
Attachments
Issue Links
- duplicates
-
SERVER-14309 can't do non-multi update or upsert with single-value $in query predicate on shard key
-
- Closed
-