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

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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 (Inactive)
              Reporter:
              Scott Hernandez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: