-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Aggregation Framework, Sharding
-
None
-
Fully Compatible
-
ALL
-
Query 2018-10-22, Query 2018-11-05
The AutoGetCollectionForReadCommand helper will automatically check that the shard version attached to the operation context matches the version of the namespace in question - this only makes sense when there is a single involved namespace.
We've actually seen this bug before, and made this change as part of preliminary work for sharded $lookup. Unfortunately, this change was reverted. This part of the change should be revived.