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

Stats for aggregation overcounted in Top

    XMLWordPrintable

    Details

    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      In the shell run

      db.toptest.insert({a:1})
      db.adminCommand("top")
      

      The entry for toptest should show a command count of 0. Then run

      db.toptest.aggregate([{$match: {}}])
      db.adminCommand("top")
      

      And now the toptest entry should show a command count of 2.

      Show
      In the shell run db.toptest.insert({a:1}) db.adminCommand( "top" ) The entry for toptest should show a command count of 0. Then run db.toptest.aggregate([{$match: {}}]) db.adminCommand( "top" ) And now the toptest entry should show a command count of 2.

      Description

      Top records some aggregation pipelines as two commands instead of one.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: