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

Interrupted canonicalization can cause crash

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 4.9.0
    • 4.9.0
    • Stability
    • None
    • Fully Compatible
    • ALL
    • Hide

      Either interrupt the following query (this may require several tries), or add a failpoint to the canonicalization step to force a failure:

      db.coll.distinct( "a", {"b" : 1})

      Show
      Either interrupt the following query (this may require several tries), or add a failpoint to the canonicalization step to force a failure: db.coll.distinct( "a", {"b" : 1})
    • Query Optimization 2021-02-22, Query Optimization 2021-03-08
    • 9

    Description

      If a query gets interrupted during canonicalization which does not have a project, it is possible that the server will crash.

      This is due to "getExecutorWithoutProjection" not checking the "canonicalize" return status.

      Attachments

        Issue Links

          Activity

            People

              joel.redman@mongodb.com Joel Redman (Inactive)
              joel.redman@mongodb.com Joel Redman (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: