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

db.serverStatus() --> opcounters returning deprecated values

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: Shell API
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Not Needed

      Problem Statement/Rationale

      We are observing deprecated values in the output db.serverStatus() of mongodb 4.0

              "opcounters" : {

                      "insert" : NumberLong(0),

                      "query" : NumberLong(79271117),

                      "update" : NumberLong(728917911),

                      "delete" : NumberLong(203420888),

                      "getmore" : NumberLong(1503587277),

                      "command" : NumberLong(1418011779),

                      "deprecated" :

      {                         "total" : NumberLong(5),                         "insert" : NumberLong(0),                         "query" : NumberLong(0),                         "update" : NumberLong(0),                         "delete" : NumberLong(0),                         "getmore" : NumberLong(0),                         "killcursors" : NumberLong(5)                 }

              },

      Because of the deprecated values our application is failing to process in production.

      I would like to understand why these values are printed by default in the shell ?

      How to remove these deprecated values from dbserverStatus output ?

       

      Please be sure to attach relevant logs with any sensitive data redacted.

      Steps to Reproduce

      How could an engineer replicate the issue you’re reporting?

      Expected Results

      What do you expect to happen?

      Actual Results

      What do you observe is happening?

      Additional Notes

      Any additional information that may be useful to include.

            Assignee:
            Unassigned Unassigned
            Reporter:
            malempati77@gmail.com Venky Chowdary
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: