Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-36715

Pushing $sort stage to query system can leave pipeline in an unstitched state

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.0.2, 4.1.3
    • Component/s: Aggregation Framework
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0
    • Sprint:
      Query 2018-08-27

      Description

      When preparing a plan executor to be used by an aggregation pipeline, there's an optimization here that pushes a $sort stage down to the query system. However, this can result in a pipeline that is not correctly stitched since there may be an additional stage after the sort that is now pointing to free'd memory.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              nicholas.zolnierz Nicholas Zolnierz
              Reporter:
              nicholas.zolnierz Nicholas Zolnierz
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: