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

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

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL

      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)                 }

              },

       

      The deprecated counters are showing only in few sites while other sites running the same MongodB version not showing them. I don't understand what is the difference which is making Mongo to respond back with deprecated values in these sites. 

      Unfortunately, our application is not able to process the output with the deprecated values in production. While we make changes to our application, I am trying to see if there is a way to disable those deprecated values using some configuration.

      As per the MongoDB documentation, The deprecated section only appears in the db.serverStatus() output when any one of the followng deprecated opcodes are used 

      Even if I query db.serverStatus() without any explicit opcode, it is returning everything..

      My query is:

      1. In what scenarios the deprecated values will be returned by MongoDB ?
      2. Is there any configuration to not display the deprecated values ?

      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

      The deprecated values should not be seen by default

      Actual Results

      In some sites, we see the deprecated values as well

      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:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: