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

Interrupted canonicalization can cause crash

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: 4.9.0
    • Component/s: 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

      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.

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

              Created:
              Updated:
              Resolved: