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

$group + $topN sometimes returns different results

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc14
    • Affects Version/s: 8.1.0-rc0, 8.0.0-rc11
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • ALL
    • v8.0

      See attached repro script. This is not reproducible on 7.0. If you re-run the same script several times in a row, eventually you get results like:

      Enterprise test> load("script.js")
      [ { _id: 'D', tzdotz1: [], tzdotz2: [], tadotz1: [], tadotz2: [] } ]
      true
      Enterprise test> load("script.js")
      [
        {
          _id: 'D',
          tadotz1: [ [] ],
          tadotz2: [ [] ],
          tzdotz1: [],
          tzdotz2: []
        }
      ]
      true

            Assignee:
            alya.berciu@mongodb.com Alya Berciu
            Reporter:
            alya.berciu@mongodb.com Alya Berciu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: