Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
2.8.0-rc4
-
None
-
Fully Compatible
-
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
- related to
-
SERVER-16723 display active commands in server status only when command metrics are available.
-
- Closed
-