mongos fails to start if the primary node does not have ismaster set to true (see SERVER-20017). The CSRS is in a startup state and mongos should retry before failing immediately:
{ "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 }
2015-08-18T19:52:03.764+0000 I NETWORK [mongosMain] starting new replica set monitor for replica set configServers with seeds 2015-08-18T19:52:03.764+0000 I NETWORK [mongosMain] rhel64.mongotest.com:29017 2015-08-18T19:52:03.764+0000 I NETWORK [mongosMain] , 2015-08-18T19:52:03.764+0000 I NETWORK [mongosMain] rhel64.mongotest.com:29018 2015-08-18T19:52:03.764+0000 I NETWORK [mongosMain] , 2015-08-18T19:52:03.764+0000 I NETWORK [mongosMain] rhel64.mongotest.com:29019 2015-08-18T19:52:03.764+0000 I NETWORK [ReplicaSetMonitorWatcher] starting 2015-08-18T19:52:03.810+0000 W NETWORK [mongosMain] No primary detected for set configServers 2015-08-18T19:52:03.810+0000 E SHARDING [mongosMain] Error initializing sharding system: NotMaster No master found for set configServers
- depends on
-
SERVER-19855 Operations that convey shard version information must include a minimum optime
- Closed
-
SERVER-20494 Enable reading from CSRS secondaries
- Closed