Suppose you have a sharded cluster with a shard key, n. Suppose further that shard 1 holds the range 1-100 and shard 2 has the range 100-infinity.
It's now possible to insert:
db.col.insert(
{n: [1, 2]})
But the query:
db.col.find(
{n: 1})
Will not return the just-inserted document.
The original insert of the array should fail.
- is duplicated by
-
SERVER-3608 Sharding on geo sometimes fails due to shard key being too big
- Closed
-
SERVER-2941 shouldn't be able to have an array be the shard key
- Closed
- related to
-
SERVER-2065 Sharding on arrays
- Closed