Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1157

Use $collStats/$currentOp instead of command forms

    • Type: Icon: Story Story
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.7.0
    • Affects Version/s: None
    • Component/s: Shell API
    • Labels:
      None
    • Not Needed
    • Iteration Xochimilco, Iteration Quahog, Iteration Ragfish, Iteration Seahorse, Iteration Turtle, Iteration Unicornfish

      Both Compass and mongosh use the collStats and currentOp commands, which are being deprecated in PM-2362. We should migrate both of them to use the $collStats and $currentOp stages instead. This is the mongosh ticket for that.

      Note that the legacy shell has a fallback for $currentOp in place due to missing Atlas support for the aggregation form (CLOUDP-89361): https://github.com/mongodb/mongo/blob/237b218974e4fc09104c81fe0bb1ba83688d8035/src/mongo/shell/db.js#L810-L815

            Assignee:
            himanshu.singh@mongodb.com Himanshu Singh
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: