-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
Labels:None
-
Fully Compatible
-
ALL
-
Query 2018-09-24, Query 2018-10-08
-
4
When setting up a non-passthrough cluster aggregation, mongos establishes cursors on the targeted shards that will be used by the merging portion of the pipeline. We must ensure that, if the aggregation fails during planning, we appropriately clean up cursors and do not leak them.
As part of this work, we'll also write tests that deliberately force a failure and assert that cursors are cleaned up appropriately.
- is duplicated by
-
SERVER-37150 Aggregation with $out can leak a cursor if the target collection is sharded
- Closed
- related to
-
SERVER-36482 Add mapping of namespace to ChunkVersion for versioned commands involving multiple collections
- Closed