-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Major - P3
-
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.
- duplicates
-
SERVER-72883 db.serverStatus() --> opcounters returning deprecated values
- Closed
- related to
-
SERVER-56501 Add op counters for legacy op codes (OP_QUERY, OP_INSERT, etc.)
- Closed