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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0-rc5
    • Component/s: Admin, Shell
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL

      Description

      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>

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: