-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.6.5
-
Component/s: Sharding
-
None
-
ALL
-
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.
- duplicates
-
SERVER-14309 can't do non-multi update or upsert with single-value $in query predicate on shard key
- Closed