[SERVER-16714] serverStatus command with oplog argument to config server returns error Created: 04/Jan/15  Updated: 15/Jan/15  Resolved: 07/Jan/15

Status: Closed
Project: Core Server
Component/s: Diagnostics
Affects Version/s: 2.8.0-rc4
Fix Version/s: 2.8.0-rc5

Type: Bug Priority: Major - P3
Reporter: John Morales Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-16723 display active commands in server sta... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 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.



 Comments   
Comment by Githook User [ 07/Jan/15 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-16714 Make serverStatus oplog section work with master-slave and config servers
Branch: master
https://github.com/mongodb/mongo/commit/4f540d4ee48b426aab310d0d08260db6decf67a4

Generated at Thu Feb 08 03:42:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.