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

Sort with {$meta: 'randVal'} crashes mongos

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 4.3.4
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • ALL
    • Query 2020-02-24
    • 23

      It looks like we have started allowing usage of {$meta: 'randVal'} in sort which was disallowed in 4.2. But this was not correctly handled on mongos, resulting in hitting this fassert.

      The following query will crash mongos on master

      db.c.find().sort({val: { $meta: 'randVal' } })
      

            Assignee:
            arun.banala@mongodb.com Arun Banala
            Reporter:
            arun.banala@mongodb.com Arun Banala
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: