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

display active commands in server status only when command metrics are available.

    • Fully Compatible
    • ALL

      Running db.serverStatus({oplog:1}) helper returns a TypeError when the command fails:

      $ mongo some-config-svr-host:40031
      MongoDB shell version: 2.8.0-rc4
      connecting to: some-config-svr-host:40031/test
      configsvr> db.serverStatus({oplog:1})
      2015-01-04T13:51:21.188-0500 I QUERY    TypeError: Cannot read property 'commands' of undefined
          at DB.serverStatus (src/mongo/shell/db.js:904:57)
          at (shell):1:4 at src/mongo/shell/db.js:904
      configsvr>
      

            Assignee:
            david.hows David Hows
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: