SERVER-114730Backlog

Allow $merge on field to have explicitly specified _id + shard key

Currently on a sharded collection on field of $merge if not present, defaults to _id + shard key:  [https://www.mongodb.com/docs/manual/reference/operator/aggregation/merge/#std-label-merge-on] However, if we explicitly state _id + shard key on a collection that doesn't have _id as a part of it's shard key, $merge validation will fail, because it won't find an index that is unique and matches all on fields. It would be nice to make the default value of "on" behave consistently if it is

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1026
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
neweng