[SERVER-15870] suppress uncalled commands from db.serverStatus() in the shell Created: 30/Oct/14  Updated: 05/Jan/15  Resolved: 17/Nov/14

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 2.7.8
Fix Version/s: 2.8.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Daniel Pasette (Inactive) Assignee: David Hows
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-16723 display active commands in server sta... Closed
is related to SERVER-7382 Track counters for each command Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

The introduction of command metrics in SERVER-7382 makes the current output of db.serverStatus() in the shell unreadable. It includes every possible command regardless of whether they are called or not (~144 commands). This is fine for machines to parse, but not for humans to read.

It is easy to filter out commands that haven't been called in the javascript helper and doesn't require any changes to the server or flags to be added to the command.



 Comments   
Comment by Scott Hernandez (Inactive) [ 14/Nov/14 ]

Seems like this got committed already. Should this be marked fixed as of RC0?

Comment by Githook User [ 01/Nov/14 ]

Author:

{u'username': u'monkey101', u'name': u'Dan Pasette', u'email': u'dan@10gen.com'}

Message: SERVER-15870 fix up some tests depending on unpruned serverStatus
Branch: master
https://github.com/mongodb/mongo/commit/1e31585822ec9066b43a0709cdb58fcfb49ca308

Comment by Githook User [ 01/Nov/14 ]

Author:

{u'username': u'monkey101', u'name': u'Dan Pasette', u'email': u'dan@10gen.com'}

Message: Revert "Revert "SERVER-15870 Prune command stats for commands that haven't run""

This reverts commit 3e31d5fab0a5ab48378a04b01ae045997af1d41a.
Branch: master
https://github.com/mongodb/mongo/commit/d1ca324125e215237fd05e19507d83e5dfe4303d

Comment by Githook User [ 01/Nov/14 ]

Author:

{u'username': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: Revert "SERVER-15870 Prune command stats for commands that haven't run"

This reverts commit d46f3e0d3542cfdd671c0edf71e5483633c13f1c.
Branch: master
https://github.com/mongodb/mongo/commit/3e31d5fab0a5ab48378a04b01ae045997af1d41a

Comment by Githook User [ 31/Oct/14 ]

Author:

{u'username': u'daveh86', u'name': u'daveh86', u'email': u'howsdav@gmail.com'}

Message: SERVER-15870 Prune command stats for commands that haven't run

Signed-off-by: Dan Pasette <dan@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/d46f3e0d3542cfdd671c0edf71e5483633c13f1c

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