-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
None
-
Query Execution
In an extremely limited set of circumstances, it is possible for a change stream updateLookup to return more than one document if there are multiple documents with the same _id on different shards of a recently-sharded collection. In such cases, we cannot determine which document the update refers to, and so we throw an exception to highlight this situation to the user. We should consider other ways of addressing this scenario.