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

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 2.8.0-rc5
    • Admin, Shell
    • Fully Compatible
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: