Details
-
Task
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
None
-
None
-
Fully Compatible
-
Sharding NYC 2022-11-28
Description
The serverStatus "opcounters" section contains the counts for for "insert", "update", "delete", "query" (find), "getmore" and "command" (all other operations). The documentation specifically notes that:
opcounters.command counts all commands except the write commands: insert, update, and delete
It turns out this statement is only true for mongod. Unlike mongod which marks insert, update and delete as shouldAffectCommandCounter(), mongos doesn't do that for ClusterWriteCmd.
Attachments
Issue Links
- is depended on by
-
SERVER-71285 Add test coverage for sample rate distribution across samplers
-
- Closed
-
-
COMPASS-6295 Investigate changes in SERVER-71281: opcounters.command on mongos counts insert, update and delete but opcounters.command on mongod doesn't
-
- Closed
-
-
TOOLS-3218 Investigate changes in SERVER-71281: opcounters.command on mongos counts insert, update and delete but opcounters.command on mongod doesn't
-
- Closed
-
- is related to
-
SERVER-66495 Aggregations should be counted as Query ops, not Command ops
-
- Backlog
-