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

XMLWordPrintableJSON

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

      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
            Reporter:
            Arun Banala
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: