[SERVER-72883] db.serverStatus() --> opcounters returning deprecated values Created: 16/Jan/23  Updated: 17/Jan/23  Resolved: 17/Jan/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Venky Chowdary Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by MONGOSH-1363 db.serverStatus() --> opcounters ret... Closed
Operating System: ALL
Participants:

 Description   

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.



 Comments   
Comment by Yuan Fang [ 17/Jan/23 ]

I'm closing this ticket as it appears to be a duplicate submission of MONGOSH-1363 and the discussion has already begun on that thread.

Generated at Thu Feb 08 06:23:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.