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

serverStatus command with oplog argument to config server returns error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.8.0-rc4
    • Fix Version/s: 2.8.0-rc5
    • Component/s: Diagnostics
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL

      Description

      Perhaps on other 2.8.0-rcX versions, but at least on 2.8.0-rc4 the response of the command {serverStatus:1, oplog:1} to a config server now returns an error:

      $ mongo some-config-svr-host:40031
      MongoDB shell version: 2.8.0-rc4
      connecting to: some-config-svr-host:40031/test
      configsvr> db.runCommand({serverStatus:1,oplog:1})
      {
      	"opcounters" : {
      		"insert" : 4960,
      		"query" : 21203,
      		"update" : 7866,
      		"delete" : 2023,
      		"getmore" : 7,
      		"command" : 16578
      	},
      	"opcountersRepl" : {
      		"insert" : 0,
      		"query" : 0,
      		"update" : 0,
      		"delete" : 0,
      		"getmore" : 0,
      		"command" : 0
      	},
              ... // all the other expected serverStatus subdocuments
      	"errmsg" : "exception: Problem reading earliest entry from oplog",
      	"code" : 17347,
      	"ok" : 0
      }
      configsvr>

      This is a change from 2.6.x config server behavior, which used to simply ignore/exclude the "oplog" section from the serverStatus response and otherwise return normally.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              spencer Spencer Brody
              Reporter:
              john.morales John Morales
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: