[SERVER-19937] isMaster command output for a configsvr Created: 13/Aug/15  Updated: 10/Nov/15  Resolved: 10/Nov/15

Status: Closed
Project: Core Server
Component/s: Diagnostics
Affects Version/s: 3.1.7
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Jonathan Abrahams Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: 32qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

The isMaster command returns a document describing the mongod instance. When the mongod is configsvr which is part of a replica set (CSRS) the output looks like:

{
	"hosts" : [
		"Jonathans-MacBook-Pro.local:29017",
		"Jonathans-MacBook-Pro.local:29018",
		"Jonathans-MacBook-Pro.local:29019"
	],
	"setName" : "configServers",
	"setVersion" : 1,
	"ismaster" : false,
	"secondary" : true,
	"me" : "Jonathans-MacBook-Pro.local:29017",
	"configsvr" : 1,
	"maxBsonObjectSize" : 16777216,
	"maxMessageSizeBytes" : 48000000,
	"maxWriteBatchSize" : 1000,
	"localTime" : ISODate("2015-08-13T17:05:16.605Z"),
	"maxWireVersion" : 4,
	"minWireVersion" : 0,
	"ok" : 1
}

The property configvr is a numeric. What does this value represent? When specifying the command replSetGetStatus for the replica set, the property configsvr is a boolean:

{
	"set" : "configServers",
	"date" : ISODate("2015-08-13T17:01:20.208Z"),
	"myState" : 1,
	"term" : NumberLong(0),
	"configsvr" : true,
	"heartbeatIntervalMillis" : NumberLong(2000),
...



 Comments   
Comment by Spencer Brody (Inactive) [ 10/Nov/15 ]

The number represents which config server protocol is in use. 0 means the legacy SCCC protocol, 1 means the new CSRS protocol.
In retrospect, perhaps we should have named that field configsvrVersion or something similar.

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