Ensure that cluster aggregations that fail clean up cursors

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.1.4
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • None
    • Fully Compatible
    • ALL
    • Query 2018-09-24, Query 2018-10-08
    • 4
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Nicholas Zolnierz
            Reporter:
            Kyle Suarez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: