-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.1.7
-
Component/s: Replication, Sharding
-
ALL
-
The isMaster command returns the "state" of the mongod.
The "primary" is this node ("me"), but "secondary" is true and "ismaster" is false. Note this was from a configsvr replica set:
{ "hosts" : [ "rhel64.mongotest.com:29017", "rhel64.mongotest.com:29018", "rhel64.mongotest.com:29019" ], "setName" : "configServers", "setVersion" : 1, "ismaster" : false, "secondary" : true, "primary" : "rhel64.mongotest.com:29017", "me" : "rhel64.mongotest.com:29017", "electionId" : ObjectId("55d38ce30000000000000000"), "configsvr" : 1, "maxBsonObjectSize" : 16777216, "maxMessageSizeBytes" : 48000000, "maxWriteBatchSize" : 1000, "localTime" : ISODate("2015-08-18T19:52:03.160Z"), "maxWireVersion" : 4, "minWireVersion" : 0, "ok" : 1 }